mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 02:01:07 +02:00
Fix The Athletic (timing)
This commit is contained in:
parent
37c929c9bf
commit
b50278756b
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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"]');
|
||||
|
|
Loading…
Reference in a new issue