Add Neue Osnabrücker Zeitung

This commit is contained in:
magnolia1234 2021-02-13 17:46:39 +01:00
parent 50f8a805ac
commit 516705c5c8
6 changed files with 26 additions and 2 deletions

View file

@ -273,6 +273,7 @@ Groupe Rossel sites (grouped in options) like
[Handelsblatt](https://www.handelsblatt.com) -
[Krautreporter.de](https://krautreporter.de) -
[Kurier.at](https://kurier.at) -
[Neue Osnabrücker Zeitung](https://www.noz.de]) -
[Piqd.de](https://www.piqd.de) -
[Ruhr Nachrichten](https://www.ruhrnachrichten.de) -
[Sächsische Zeitung](https://www.saechsische.de) -

View file

@ -95,6 +95,7 @@ var allow_cookies_default = [
'newrepublic.com',
'noordhollandsdagblad.nl',
'nouvelobs.com',
'noz.de',
'nybooks.com',
'nytimes.com',
'nzz.ch',
@ -303,6 +304,7 @@ var blockedRegexes = {
'newrepublic.com': /.+\.onecount\.net\/js\/.+/,
'newsweek.com': /js\.pelcro\.com\/.+/,
'newyorker.com': /.+\.newyorker\.com\/verso\/static\/presenter-articles.+\.js/,
'noz.de': /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|fx-flying-carpet)-.+\.js/,
'nytimes.com': /(meter-svc\.nytimes\.com\/meter\.js|mwcm\.nyt\.com\/.+\.js)/,
'observador.pt': /\.tinypass\.com\/.+/,
'parismatch.com': /.+\.poool\.fr\/.+/,
@ -902,7 +904,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.com', header_referer) && isSiteEnabled({url: header_referer}));
let bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && isSiteEnabled({url: header_referer}) &&
matchUrlDomain(['barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, usa_mcc_domains), header_referer));
matchUrlDomain(['barrons.com', 'belfasttelegraph.co.uk', 'cicero.de', 'cmjornal.pt', 'elmundo.es', 'elpais.com', 'elperiodico.com', 'expansion.com', 'freiepresse.de', 'gelocal.it', 'ilsecoloxix.it', 'independent.ie', 'irishtimes.com', 'la-croix.com', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'seekingalpha.com', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, usa_mcc_domains), header_referer));
if (!isSiteEnabled(details) && !inkl_site && !au_nc_amp_site && !au_apn_site && !au_swm_site && !cl_elmerc_site && !medium_custom_domain && !uk_nlr_site && !usa_discmag_site && !usa_mw_site && !bpc_amp_site) {
return;

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add group McClatchy (USA)
Add Neue Osnabruecker Zeitung (Germany)
Add Time Magazine
Fix-update Cors Anywhere (link to allow access)
Fix-update Il Secolo XIX (amp)

View file

@ -2087,6 +2087,24 @@ else if (matchDomain('time.com')) {
document.querySelector('body')?.setAttribute('style', 'position:relative !important;')
}
else if (matchDomain('noz.de')) {
let url = window.location.href;
let paywall = document.querySelector('.paywall');
if (url.includes('?amp')) {
let subscriber = document.querySelector('div[amp-access="NOT data.reduced"]');
if (subscriber)
subscriber.removeAttribute('amp-access-hide');
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
removeDOMElement(...amp_ads);
} else {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
}
}
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
csDone = true;

View file

@ -296,6 +296,7 @@
"*://*.northerndailyleader.com.au/*",
"*://*.northernstar.com.au/*",
"*://*.nouvelobs.com/*",
"*://*.noz.de/*",
"*://*.nrc.nl/*",
"*://*.nrpyrenees.fr/*",
"*://*.nrz.de/*",
@ -470,5 +471,5 @@
"*://*.userzoom.com/*",
"*://*.wsj.net/*"
],
"version": "2.0.7.4"
"version": "2.0.7.5"
}

View file

@ -156,6 +156,7 @@ var defaultSites =
"National Post": "nationalpost.com",
"National Review": "nationalreview.com",
"Nautilus": "nautil.us",
"Neue Osnabrücker Zeitung": "noz.de",
"Neue Zürcher Zeitung": "nzz.ch",
"New Left Review": "newleftreview.org",
"New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": "###_usa_nymag",