mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01: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
|
Post-release
|
||||||
Fix Stratfor (forecasts)
|
Fix Stratfor (forecasts)
|
||||||
|
Fix The Athletic (timing)
|
||||||
|
|
||||||
* v2.4.1.0 (2021-10-24)
|
* v2.4.1.0 (2021-10-24)
|
||||||
Add Elle.fr
|
Add Elle.fr
|
||||||
|
|
|
@ -1436,11 +1436,13 @@ else if (matchDomain('the-tls.co.uk')) {
|
||||||
|
|
||||||
else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
|
else if (matchDomain(['theathletic.com', 'theathletic.co.uk'])) {
|
||||||
if (!window.location.href.includes('?amp')) {
|
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"]');
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
if (paywall && amphtml) {
|
if (paywall && amphtml) {
|
||||||
removeDOMElement(...paywall);
|
removeDOMElement(...paywall);
|
||||||
window.location.href = amphtml.href;
|
window.setTimeout(function () {
|
||||||
|
window.location.href = amphtml.href;
|
||||||
|
}, 500); // Delay (in milliseconds)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let subscr_sections = document.querySelectorAll('[subscriptions-section="content"]');
|
let subscr_sections = document.querySelectorAll('[subscriptions-section="content"]');
|
||||||
|
|
Loading…
Reference in a new issue