Fix The Athletic

This commit is contained in:
magnolia1234 2021-08-11 18:31:39 +02:00
parent 15543ae001
commit e0153a51a9
3 changed files with 9 additions and 5 deletions

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix group McClatchy (unlisted sites) Fix group McClatchy (unlisted sites)
Fix MediaNama (modal) Fix MediaNama (modal)
Fix The Athletic
* v2.3.2.0 (2021-08-08) * v2.3.2.0 (2021-08-08)
Add Inc42 (India) Add Inc42 (India)

View file

@ -1392,8 +1392,11 @@ else if (matchDomain('telegraaf.nl')) {
let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : ''; let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : '';
if (json) { if (json) {
let json_article_id = json.split('uid\":')[1].split(',\"')[0]; let json_article_id = json.split('uid\":')[1].split(',\"')[0];
if (json_article_id && json_article_id !== article_id) if (json_article_id && json_article_id !== article_id) {
window.location.reload(true); window.setTimeout(function () {
window.location.reload(true);
}, 500);
}
let json_text = json.includes('"body":"') ? json.split('"body":"')[1].split('","__typename":')[0] : ''; let json_text = json.includes('"body":"') ? json.split('"body":"')[1].split('","__typename":')[0] : '';
if (json_text) { if (json_text) {
let intro = document.querySelector('span[id^="articleIntro"]'); let intro = document.querySelector('span[id^="articleIntro"]');
@ -1483,8 +1486,8 @@ 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.querySelector('div#paywall-container'); let paywall = document.querySelector('div#paywall-container, div[subscriptions-action="subscribe"]');
let amphtml = document.querySelector('link[rel="amphtml"]'); let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) { if (paywall && amphtml) {
removeDOMElement(paywall); removeDOMElement(paywall);

View file

@ -545,5 +545,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.3.2.2" "version": "2.3.2.3"
} }