diff --git a/changelog.txt b/changelog.txt index c364f90..023eae9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix group McClatchy (unlisted sites) Fix MediaNama (modal) +Fix The Athletic * v2.3.2.0 (2021-08-08) Add Inc42 (India) diff --git a/contentScript.js b/contentScript.js index 14d1020..125242c 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1392,8 +1392,11 @@ else if (matchDomain('telegraaf.nl')) { let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : ''; if (json) { let json_article_id = json.split('uid\":')[1].split(',\"')[0]; - if (json_article_id && json_article_id !== article_id) - window.location.reload(true); + if (json_article_id && json_article_id !== article_id) { + window.setTimeout(function () { + window.location.reload(true); + }, 500); + } let json_text = json.includes('"body":"') ? json.split('"body":"')[1].split('","__typename":')[0] : ''; if (json_text) { let intro = document.querySelector('span[id^="articleIntro"]'); @@ -1483,8 +1486,8 @@ else if (matchDomain('the-tls.co.uk')) { } else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) { - if (!window.location.href.includes('/?amp')) { - let paywall = document.querySelector('div#paywall-container'); + if (!window.location.href.includes('?amp')) { + let paywall = document.querySelector('div#paywall-container, div[subscriptions-action="subscribe"]'); let amphtml = document.querySelector('link[rel="amphtml"]'); if (paywall && amphtml) { removeDOMElement(paywall); diff --git a/manifest.json b/manifest.json index 7c8571a..c428a50 100644 --- a/manifest.json +++ b/manifest.json @@ -545,5 +545,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.2.2" + "version": "2.3.2.3" } \ No newline at end of file