mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 02:11:06 +02:00
Fix The Athletic
This commit is contained in:
parent
15543ae001
commit
e0153a51a9
3 changed files with 9 additions and 5 deletions
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Fix group McClatchy (unlisted sites)
|
||||
Fix MediaNama (modal)
|
||||
Fix The Athletic
|
||||
|
||||
* v2.3.2.0 (2021-08-08)
|
||||
Add Inc42 (India)
|
||||
|
|
|
@ -1392,8 +1392,11 @@ else if (matchDomain('telegraaf.nl')) {
|
|||
let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : '';
|
||||
if (json) {
|
||||
let json_article_id = json.split('uid\":')[1].split(',\"')[0];
|
||||
if (json_article_id && json_article_id !== article_id)
|
||||
window.location.reload(true);
|
||||
if (json_article_id && json_article_id !== article_id) {
|
||||
window.setTimeout(function () {
|
||||
window.location.reload(true);
|
||||
}, 500);
|
||||
}
|
||||
let json_text = json.includes('"body":"') ? json.split('"body":"')[1].split('","__typename":')[0] : '';
|
||||
if (json_text) {
|
||||
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'])) {
|
||||
if (!window.location.href.includes('/?amp')) {
|
||||
let paywall = document.querySelector('div#paywall-container');
|
||||
if (!window.location.href.includes('?amp')) {
|
||||
let paywall = document.querySelector('div#paywall-container, div[subscriptions-action="subscribe"]');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
|
|
|
@ -545,5 +545,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.2.2"
|
||||
"version": "2.3.2.3"
|
||||
}
|
Loading…
Reference in a new issue