mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix The Athletic
This commit is contained in:
parent
1c157e1afb
commit
7cba2e8fb6
@ -12,6 +12,7 @@ Fix Il Tirreno (GElocal.it)
|
||||
Fix Financial Times (amp)
|
||||
Fix Knack.be
|
||||
Fix La Croix (timing)
|
||||
Fix The Athletic
|
||||
Fix The Globe and Mail
|
||||
Fix The New Yorker (homepage)
|
||||
Fix Trouw.nl (timing)
|
||||
|
@ -1428,10 +1428,10 @@ 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, div[subscriptions-action="subscribe"]');
|
||||
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);
|
||||
removeDOMElement(...paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user