Add Westfalen-Blatt (Germany)

This commit is contained in:
magnolia1234 2021-10-01 15:28:11 +02:00
parent cf4070cbf0
commit 6d031939e1
6 changed files with 21 additions and 3 deletions

View file

@ -354,7 +354,8 @@ Grouped in options:\
[Sächsische Zeitung](https://www.saechsische.de) - [Sächsische Zeitung](https://www.saechsische.de) -
[Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) - [Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) -
[Schweriner Volkszeitung](https://www.svz.de) - [Schweriner Volkszeitung](https://www.svz.de) -
[Süddeutsche Zeitung](https://www.sueddeutsche.de) [Süddeutsche Zeitung](https://www.sueddeutsche.de) -
[Westfalen-Blatt](https://www.westfalen-blatt.de)
Grouped in options:\ Grouped in options:\
*Funke Mediengruppe* sites like\ *Funke Mediengruppe* sites like\

View file

@ -173,6 +173,7 @@ var allow_cookies_default = [
'velonews.com', 'velonews.com',
'venturebeat.com', 'venturebeat.com',
'washingtonpost.com', 'washingtonpost.com',
'westfalen-blatt.de',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'zeit.de', 'zeit.de',
]; ];
@ -245,6 +246,7 @@ var use_google_bot_default = [
'thetimes.co.uk', 'thetimes.co.uk',
'usatoday.com', 'usatoday.com',
'usinenouvelle.com', 'usinenouvelle.com',
'westfalen-blatt.de',
'wired.com', 'wired.com',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'wsj.com', 'wsj.com',
@ -413,6 +415,7 @@ var blockedRegexes = {
'velonews.com': /\.velonews\.com\/.+\/scripts\/contentGate.+\.js/, 'velonews.com': /\.velonews\.com\/.+\/scripts\/contentGate.+\.js/,
'venturebeat.com': /\.wallkit\.net\/js\//, 'venturebeat.com': /\.wallkit\.net\/js\//,
'washingtonpost.com': /(\.washingtonpost\.com\/.+\/(default-article\/.+\/load_immediately|jqmodal)\/.+\.js|cdn\.ampproject\.org\/.+\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/, 'washingtonpost.com': /(\.washingtonpost\.com\/.+\/(default-article\/.+\/load_immediately|jqmodal)\/.+\.js|cdn\.ampproject\.org\/.+\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/,
'westfalen-blatt.de': /cdn\.ampproject\.org\/.+\/v\d\/amp-(ad|subscriptions)-.+\.js/,
'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js|cdn\.cxense\.com\/)/ 'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js|cdn\.cxense\.com\/)/
}; };
@ -1208,7 +1211,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_today_site = (matchUrlDomain('gannett-cdn.com', details.url) && matchUrlDomain(['usatoday.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_law360_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_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', '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', 'wsj.com'].concat(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', 'elpais.com', 'elperiodico.com', 'freiepresse.de', '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', 'wsj.com'].concat(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_apn_site && !au_swm_site) { if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_apn_site && !au_swm_site) {

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Add Westfalen-Blatt (Germany)
Remove Gazet van Antwerpen (obsolete) Remove Gazet van Antwerpen (obsolete)
Fix Boston Globe Fix Boston Globe
Fix El Periodico de Catalunya (amp) Fix El Periodico de Catalunya (amp)

View file

@ -587,6 +587,17 @@ else if (matchDomain('sueddeutsche.de')) {
}, 500); // Delay (in milliseconds) }, 500); // Delay (in milliseconds)
} }
else if (matchDomain('westfalen-blatt.de')) {
let url = window.location.href;
if (url.includes('/amp/')) {
let subscr_sections = document.querySelectorAll('section[subscriptions-section="content"]');
for (let subscr_section of subscr_sections)
subscr_section.removeAttribute('subscriptions-section');
}
let amp_ads = document.querySelectorAll('section[class^="fp-ad"]');
removeDOMElement(...amp_ads);
}
else if ((domain = matchDomain(de_madsack_domains)) || document.querySelector('link[rel="preload"][href="https://static.rndtech.de/cmp/1.x.x.js"]')) { else if ((domain = matchDomain(de_madsack_domains)) || document.querySelector('link[rel="preload"][href="https://static.rndtech.de/cmp/1.x.x.js"]')) {
let url = window.location.href; let url = window.location.href;
if (!url.includes(domain + '/amp/')) { if (!url.includes(domain + '/amp/')) {

View file

@ -516,6 +516,7 @@
"*://*.weeklytimesnow.com.au/*", "*://*.weeklytimesnow.com.au/*",
"*://*.wellandtribune.ca/*", "*://*.wellandtribune.ca/*",
"*://*.westernadvocate.com.au/*", "*://*.westernadvocate.com.au/*",
"*://*.westfalen-blatt.de/*",
"*://*.wired.com/*", "*://*.wired.com/*",
"*://*.worldpoliticsreview.com/*", "*://*.worldpoliticsreview.com/*",
"*://*.wp.de/*", "*://*.wp.de/*",
@ -560,5 +561,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.3.7.3" "version": "2.3.7.4"
} }

View file

@ -297,6 +297,7 @@ var defaultSites =
"VentureBeat": "venturebeat.com", "VentureBeat": "venturebeat.com",
"Volkskrant": "volkskrant.nl", "Volkskrant": "volkskrant.nl",
"WAtoday": "watoday.com.au", "WAtoday": "watoday.com.au",
"Westfalen-Blatt": "westfalen-blatt.de",
"Winston-Salem Journal": "journalnow.com", "Winston-Salem Journal": "journalnow.com",
"Wired": "wired.com", "Wired": "wired.com",
"World Politics Review": "worldpoliticsreview.com", "World Politics Review": "worldpoliticsreview.com",