diff --git a/changelog.txt b/changelog.txt index 769d66f..1a0d4e9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix Stratfor (forecasts) +Fix The Athletic (timing) * v2.4.1.0 (2021-10-24) Add Elle.fr diff --git a/contentScript.js b/contentScript.js index c649434..9ca2388 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1436,11 +1436,13 @@ else if (matchDomain('the-tls.co.uk')) { else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) { if (!window.location.href.includes('?amp')) { - let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"]', 'a.headline-paywall'); + let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"], a.headline-paywall'); let amphtml = document.querySelector('link[rel="amphtml"]'); if (paywall && amphtml) { removeDOMElement(...paywall); - window.location.href = amphtml.href; + window.setTimeout(function () { + window.location.href = amphtml.href; + }, 500); // Delay (in milliseconds) } } else { let subscr_sections = document.querySelectorAll('[subscriptions-section="content"]');