Fix The Athletic

merge-requests/9/merge
magnolia1234 2 years ago
parent f24bd2191b
commit 0b6e8ca488

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Hearst Communications (newspapers)
Fix The Athletic
* v2.8.5.0 (2022-09-18)
Add 60 Millions de consommateurs

@ -3620,24 +3620,13 @@ else if (matchDomain('the-american-interest.com')) {
else if (matchDomain('theathletic.com')) {
if (!window.location.search.match(/(\?|&)amp/)) {
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);
}
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);
}
} else {
amp_unhide_subscr_section();

@ -707,5 +707,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.5.1"
"version": "2.8.5.2"
}

@ -38,6 +38,15 @@
"domain": "penews.com",
"useragent": "googlebot"
},
"The Athletic": {
"domain": "###_usa_theathletic",
"group": [
"theathletic.com"
],
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js",
"amp_redirect": "meta[content=\"article\"]"
},
"The New European": {
"domain": "theneweuropean.co.uk",
"allow_cookies": 1,

Loading…
Cancel
Save