Fix The Athletic (css)

merge-requests/10/head
magnolia1234 2 years ago
parent fa4727816d
commit 16ba9718bb

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix ESPN USA (link to archive.is)
Fix The Athletic (css)
* v2.8.9.0 (2022-10-16)
Add Albuquerque Journal

@ -3585,13 +3585,24 @@ else if (matchDomain('the-american-interest.com')) {
else if (matchDomain('theathletic.com')) {
if (!window.location.search.match(/(\?|&)amp/)) {
let paywall = document.querySelector('meta[content="article"]');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.setTimeout(function () {
window.location.href = amphtml.href;
}, 1000);
let paywall = document.querySelector('div#slideup-paywall');
if (paywall) {
let overlays = document.querySelectorAll('div[id*="overlay"], div:empty:not([data-rjs])');
removeDOMElement(paywall, ...overlays);
let body = document.querySelector('body');
if (body) {
body.style.overflow = 'visible';
body.style.position = 'relative';
}
} else {
let headline_paywall = document.querySelectorAll('a.headline-paywall');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (headline_paywall.length && amphtml) {
removeDOMElement(...headline_paywall);
window.setTimeout(function () {
window.location.href = amphtml.href;
}, 1000);
}
}
} else {
amp_unhide_subscr_section();

@ -720,5 +720,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.9.1"
"version": "2.8.9.2"
}

Loading…
Cancel
Save