Fix New Left Review (timing)
This commit is contained in:
parent
d834027628
commit
32e0852f7f
@ -4,7 +4,7 @@
|
||||
var ext_api = (typeof browser === 'object') ? browser : chrome;
|
||||
var ext_name = ext_api.runtime.getManifest().name;
|
||||
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'inkl.com', 'la-croix.com', 'nation.africa', 'nationalgeographic.com', 'newleftreview.org'];
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'inkl.com', 'la-croix.com', 'nation.africa', 'nationalgeographic.com'];
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
|
||||
@ -1117,12 +1117,11 @@ 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 uk_nlr_site = (matchUrlDomain('stripe.com', details.url) && matchUrlDomain('newleftreview.org', 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 || uk_nlr_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_discmag_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));
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Fix Il Secolo XIX (amp-redirect)
|
||||
Fix New Left Review (timing)
|
||||
Fix WaPo (amp)
|
||||
|
||||
* v2.2.8.0 (2021-07-04)
|
||||
|
@ -1572,7 +1572,7 @@ else if (matchDomain('valor.globo.com')) {
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url;
|
||||
replaceDomElementExt(url_cache, true, false, 'div.mc-article-body', 'Failed to load from Google webcache: ');
|
||||
replaceDomElementExt(url_cache, true, false, 'div.protected-content', 'Failed to load from Google webcache: ');
|
||||
}
|
||||
}
|
||||
|
||||
@ -2074,13 +2074,15 @@ else if (matchDomain('nationalreview.com')) {
|
||||
}
|
||||
|
||||
else if (matchDomain('newleftreview.org')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div.promo-wrapper');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('//')[1];
|
||||
replaceDomElementExt(url_cache, true, false, 'div.article-page', 'Failed to load from Google webcache: ');
|
||||
}
|
||||
window.setTimeout(function () {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div.promo-wrapper');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('//')[1];
|
||||
replaceDomElementExt(url_cache, true, false, 'div.article-page', 'Failed to load from Google webcache: ');
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
else if (matchDomain('newstatesman.com')) {
|
||||
@ -2493,9 +2495,11 @@ else if (matchDomain('venturebeat.com')) {
|
||||
}
|
||||
|
||||
else if (matchDomain('washingtonpost.com')) {
|
||||
let leaderboard = document.querySelector('#leaderboard-wrapper');
|
||||
let adverts = document.querySelectorAll('div[data-qa="article-body-ad"]');
|
||||
removeDOMElement(leaderboard, ...adverts);
|
||||
window.setTimeout(function () {
|
||||
let leaderboard = document.querySelector('#leaderboard-wrapper');
|
||||
let adverts = document.querySelectorAll('div[data-qa="article-body-ad"]');
|
||||
removeDOMElement(leaderboard, ...adverts);
|
||||
}, 500); // Delay (in milliseconds)
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
let free_button = document.querySelector('.gdpr-consent-container .continue-btn.button.free');
|
||||
if (free_button)
|
||||
|
@ -38,5 +38,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.2.8.2"
|
||||
"version": "2.2.8.3"
|
||||
}
|
4
lib/purify.min.js
vendored
4
lib/purify.min.js
vendored
File diff suppressed because one or more lines are too long
@ -508,7 +508,6 @@
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
"*://*.flip-pay.com/*",
|
||||
"*://*.ffx.io/*",
|
||||
"*://*.gannett-cdn.com/*",
|
||||
"*://*.htmedia.in/*",
|
||||
"*://*.jsdelivr.net/*",
|
||||
@ -519,10 +518,9 @@
|
||||
"*://*.pasedigital.cl/*",
|
||||
"*://*.rcsobjects.it/*",
|
||||
"*://*.repstatic.it/*",
|
||||
"*://*.stripe.com/*",
|
||||
"*://*.userzoom.com/*",
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.8.2"
|
||||
"version": "2.2.8.3"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user