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 Post-release
Fix Hearst Communications (newspapers) Fix Hearst Communications (newspapers)
Fix The Athletic
* v2.8.5.0 (2022-09-18) * v2.8.5.0 (2022-09-18)
Add 60 Millions de consommateurs Add 60 Millions de consommateurs

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

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

@ -38,6 +38,15 @@
"domain": "penews.com", "domain": "penews.com",
"useragent": "googlebot" "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": { "The New European": {
"domain": "theneweuropean.co.uk", "domain": "theneweuropean.co.uk",
"allow_cookies": 1, "allow_cookies": 1,

Loading…
Cancel
Save