Fix Discover Magazine
This commit is contained in:
parent
7ef123c0d5
commit
e47e83d1a4
@ -1116,11 +1116,10 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
let cl_elmerc_site = (matchUrlDomain('emol.cl', details.url) && matchUrlDomain('elmercurio.com', header_referer));
|
||||
let es_elesp_site = (matchUrlDomain('eestatic.com', details.url) && matchUrlDomain('elespanol.com', header_referer));
|
||||
let it_repubblica_site = (matchUrlDomain(['repstatic.it'], details.url) && matchUrlDomain(it_repubblica_domains, header_referer));
|
||||
let usa_discmag_site = (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer));
|
||||
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer));
|
||||
let usa_natgeo_site = (matchUrlDomain('natgeofe.com', details.url) && matchUrlDomain('nationalgeographic.com', header_referer));
|
||||
let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.com'], header_referer));
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_discmag_site || usa_mw_site || usa_natgeo_site || usa_today_site;
|
||||
allow_ext_source = allow_ext_source || inkl_site || cl_elmerc_site || es_elesp_site || it_repubblica_site || usa_mw_site || usa_natgeo_site || usa_today_site;
|
||||
|
||||
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'scmp.com', 'seekingalpha.com', 'shz.de', 'staradvertiser.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk', 'washingtonpost.com'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_theathletic_domains), header_referer));
|
||||
}
|
||||
@ -1129,15 +1128,6 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
return;
|
||||
}
|
||||
|
||||
// remove cookies Discover Magazine
|
||||
if (details.type === 'image' && matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
|
||||
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
|
||||
for (let cookie of cookies) {
|
||||
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// block javascript of (sub)domain for custom sites (optional)
|
||||
var domain_blockjs = matchUrlDomain(block_js_custom, details.url);
|
||||
if (domain_blockjs && matchUrlDomain(domain_blockjs, details.url) && details.type === 'script') {
|
||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add TradeWinds
|
||||
Fix Discover Magazine
|
||||
Fix Il Secolo XIX (amp-redirect)
|
||||
Fix Miami Herald (group McClatchy)
|
||||
Fix New Left Review (timing)
|
||||
|
@ -1766,7 +1766,7 @@ else if (matchDomain('discovermagazine.com')) {
|
||||
let mammoth = document.querySelector('.iXVGnF');
|
||||
if (mammoth)
|
||||
window.location.reload();
|
||||
let banner = document.querySelector('div.hWOjDZ, div.qa7yll-1');
|
||||
let banner = document.querySelector('div.dPURIw');
|
||||
if (banner)
|
||||
banner.setAttribute('style', 'display:none;');
|
||||
}, 1000); // Delay (in milliseconds)
|
||||
@ -2569,6 +2569,7 @@ else if (matchDomain('washingtonpost.com')) {
|
||||
removeDOMElement(node);
|
||||
let url_amp = url.split('?')[0] + '?outputType=amp';
|
||||
replaceDomElementExt(url_amp, false, false, 'div.article-body', 'Failed to load from amp-page: ');
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
function wapo_overlay(node) {
|
||||
node.removeAttribute('style');
|
||||
|
@ -38,5 +38,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.2.8.7"
|
||||
"version": "2.2.8.8"
|
||||
}
|
@ -504,7 +504,6 @@
|
||||
"*://*.bwbx.io/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.ctfassets.net/*",
|
||||
"*://*.eestatic.com/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
@ -523,5 +522,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.8.7"
|
||||
"version": "2.2.8.8"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user