Fix The Athletic (amp)

This commit is contained in:
magnolia1234 2022-08-02 23:39:41 +02:00
parent c602805d41
commit e2ff4d03a8
5 changed files with 19 additions and 4 deletions

View File

@ -6,6 +6,7 @@ Add Limburger.nl
Add Standaard.be Add Standaard.be
Add SuomenSotilas.fi Add SuomenSotilas.fi
Add Tagesspiegel.de Add Tagesspiegel.de
Fix The Athletic (amp)
Redirect Google AMP cache (opt-in to custom sites) Redirect Google AMP cache (opt-in to custom sites)
Update block general paywall script (limit Evolok WordPress) Update block general paywall script (limit Evolok WordPress)
Update custom sites (load text from Google webcache) Update custom sites (load text from Google webcache)

View File

@ -3675,10 +3675,11 @@ else if (matchDomain('theathletic.com')) {
removeDOMElement(...paywall); removeDOMElement(...paywall);
window.setTimeout(function () { window.setTimeout(function () {
window.location.href = amphtml.href; window.location.href = amphtml.href;
}, 500); }, 1000);
} }
} else { } else {
amp_unhide_subscr_section(); amp_unhide_subscr_section();
amp_unhide_access_hide('', '*="NOT granted"');
let subscr_actions = document.querySelectorAll('[subscriptions-actions]'); let subscr_actions = document.querySelectorAll('[subscriptions-actions]');
removeDOMElement(...subscr_actions); removeDOMElement(...subscr_actions);
let layout_fail = document.querySelectorAll('.col-sm-12'); let layout_fail = document.querySelectorAll('.col-sm-12');

View File

@ -700,5 +700,5 @@
"*://gcm.omerlocdn.com/*", "*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "2.7.8.3" "version": "2.7.8.4"
} }

View File

@ -1654,7 +1654,7 @@ var defaultSites = {
"theathletic.com" "theathletic.com"
], ],
allow_cookies: 1, allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/ block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/
}, },
"The Atlanta Journal-Constitution": { "The Atlanta Journal-Constitution": {
domain: "ajc.com", domain: "ajc.com",
@ -2210,4 +2210,4 @@ var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];
// sites with no fix (background) // sites with no fix (background)
var nl_ad_region_domains = ['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl']; var nl_ad_region_domains = ['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'];
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.de', 'publico.pt', 'republic.ru', 'rp-online.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'wiwo.de', 'ynet.co.il'].concat(nl_ad_region_domains); var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.dk', 'publico.pt', 'republic.ru', 'rp-online.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'wiwo.de', 'ynet.co.il'].concat(nl_ad_region_domains);

View File

@ -82,6 +82,19 @@
} }
] ]
}, },
"The Athletic": {
"domain": "###_usa_theathletic",
"group": [
"theathletic.com"
],
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js",
"cs_code": [{
"cond": "div[amp-access*=\"NOT granted\"]",
"rm_elem": 1
}
]
},
"Winnipeg Free Press": { "Winnipeg Free Press": {
"domain": "winnipegfreepress.com", "domain": "winnipegfreepress.com",
"allow_cookies": 1, "allow_cookies": 1,