Fix The Athletic (timing)

This commit is contained in:
magnolia1234 2021-10-25 20:18:48 +02:00
parent 37c929c9bf
commit b50278756b
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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"]');