Fix Il Tirreno (GElocal.it)

merge-requests/2/head
magnolia1234 3 years ago
parent c0ccdac903
commit 01d171cc82

@ -308,7 +308,7 @@ var blockedRegexes = {
'dallasnews.com': /(\.blueconic\.net\/|js\.matheranalytics\.com\/)/,
'digiday.com': /cdn.\.tinypass\.com\//,
'dvhn.nl': /\.evolok\.net\/.+\/authorize\//,
'economist.com': /\.tinypass\.com\//,
'economist.com': /(\.tinypass\.com\/cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
'editorialedomani.it': /(\.editorialedomani\.it\/pelcro\.js|js\.pelcro\.com\/)/,
'elcomercio.pe': /\/elcomercio\.pe\/pf\/dist\/engine\/react\.js/,
'elconfidencial.com': /\.tinypass\.com\//,
@ -1283,7 +1283,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
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_law360_site || usa_mw_site || usa_natgeo_site || usa_today_site;
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['aachener-zeitung.de', 'asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'ft.com', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', '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', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(amp_unhide, au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['aachener-zeitung.de', 'asiatimes.com', 'augsburger-allgemeine.de', 'barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'economist.com', 'elpais.com', 'elperiodico.com', 'freiepresse.de', 'ft.com', 'handelsblatt.com', 'ilfattoquotidiano.it', 'inc42.com', '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', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(amp_unhide, au_news_corp_domains, au_nine_domains, de_madsack_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains, usa_mng_domains, usa_theathletic_domains), header_referer));
}
if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_swm_site) {

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Business Standard
Fix Il Tirreno (GElocal.it)
Fix Financial Times (amp)
* v2.4.0.0 (2021-10-17)

@ -1133,20 +1133,18 @@ else if (matchDomain('rep.repubblica.it')) {
else if (domain = matchDomain(it_repubblica_domains)) {
let url = window.location.href.split('?')[0];
if (!url.match(/\amp(\/)?$/)) {
if (['gelocal.it', 'ilsecoloxix.it', 'lastampa.it', 'repubblica.it'].includes(domain)) {
let premium = document.querySelector('#paywall, iframe#__limio_frame');
if (premium) {
removeDOMElement(premium);
if (!url.includes('/podcast/')) {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (!amphtml)
amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')};
if (amphtml)
window.location.href = amphtml.href;
}
let premium = document.querySelector('#paywall, iframe#__limio_frame');
if (premium) {
removeDOMElement(premium);
if (!url.includes('/podcast/')) {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (!amphtml)
amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')};
if (amphtml)
window.location.href = amphtml.href;
}
} else {
let premium = document.querySelector('.paywall-adagio');
} else if (matchDomain('gelocal.it')) {
premium = document.querySelector('.paywall-adagio');
if (premium) {
removeDOMElement(premium);
window.setTimeout(function () {
@ -1971,6 +1969,8 @@ else if (matchDomain('ft.com')) {
let subscr_section = document.querySelector('[subscriptions-section="content"]');
if (subscr_section)
subscr_section.removeAttribute('subscriptions-section');
let amp_ads = document.querySelectorAll('.ad-container, amp-ad');
removeDOMElement(...amp_ads);
} else {
let cookie_banner = document.querySelector('.o-banner__outer');
let ribbon = document.querySelector('.js-article-ribbon');

Loading…
Cancel
Save