Add Nordwest Zeitung (Germany)

This commit is contained in:
magnolia1234 2021-03-28 16:05:06 +02:00
parent 167ef2870d
commit 0e3686f0e4
6 changed files with 14 additions and 23 deletions

View file

@ -295,6 +295,7 @@ Groupe Rossel sites (grouped in options) like
[Kurier.at](https://kurier.at) -
[Mitteldeutsche Zeitung](https://www.mz-web.de) -
[Neue Osnabrücker Zeitung](https://www.noz.de]) -
[Nordwest Zeitung](https://www.nwzonline.de) -
[Piqd.de](https://www.piqd.de) -
[Rhein-Zeitung](https://www.rhein-zeitung.de) -
[Ruhr Nachrichten](https://www.ruhrnachrichten.de) -

View file

@ -105,6 +105,7 @@ var allow_cookies_default = [
'noordhollandsdagblad.nl',
'nouvelobs.com',
'noz.de',
'nwzonline.de',
'nybooks.com',
'nytimes.com',
'nzz.ch',
@ -325,6 +326,7 @@ var blockedRegexes = {
'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/,
'nwzonline.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\//,
@ -938,7 +940,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
let usa_mw_site = (matchUrlDomain('wsj.net', details.url) && matchUrlDomain('marketwatch.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;
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['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', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'seekingalpha.com', 'shz.de', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains), header_referer));
bpc_amp_site = (matchUrlDomain('cdn.ampproject.org', details.url) && matchUrlDomain(['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', 'lne.es', 'marketwatch.com', 'nationalreview.com', 'noz.de', 'nwzonline.de', 'seekingalpha.com', 'shz.de', 'sueddeutsche.de', 'svz.de', 'telegraph.co.uk'].concat(au_news_corp_domains, au_nine_domains, de_madsack_domains, de_rp_medien_domains, es_grupo_vocento_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, it_repubblica_domains, usa_mcc_domains), header_referer));
}
if (!isSiteEnabled(details) && !allow_ext_source && !bpc_amp_site && !au_apn_site && !au_swm_site) {

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Aachener Zeitung (Germany)
Add Apollo Magazine
Add Nordwest Zeitung (Germany)
Fix-update group McClatchy (opt-in to custom sites for unlisted)
Fix-update Wired (Googlebot)
Fix-update WSJ (option to disable Googlebot; http error 500)

View file

@ -1859,22 +1859,6 @@ else if (matchDomain('lavanguardia.com')) {
removeDOMElement(paywall, infinite_loading);
}
else if (matchDomain(['shz.de', 'svz.de'])) {
let paywall = document.querySelector('.paywall');
removeDOMElement(paywall);
let url = window.location.href;
if (!url.includes('-amp.html')) {
if (paywall)
window.location.href = url.replace('.html', '-amp.html');
} else {
let div_hidden = document.querySelector('div[amp-access="NOT data.reduced"]');
if (div_hidden)
div_hidden.removeAttribute('amp-access-hide');
}
let amp_ads = document.querySelectorAll('amp-ad, amp-embed, #flying-carpet-wrapper');
removeDOMElement(...amp_ads);
}
else if (matchDomain('sudouest.fr')) {
let url = window.location.href;
let paywall = document.querySelector('.article-premium-footer');
@ -2093,15 +2077,16 @@ else if (matchDomain('time.com')) {
body.setAttribute('style', 'position:relative !important;');
}
else if (matchDomain('noz.de')) {
else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) {
let url = window.location.href;
let paywall = document.querySelector('.paywall');
if (url.includes('?amp')) {
let paywall = document.querySelector('.paywall, .story--premium__container');
if (url.includes('?amp') || url.includes('-amp.html')) {
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);
let non_subscriber = document.querySelector('div[amp-access="data.reduced"]');
let amp_ads = document.querySelectorAll('amp-ad, amp-embed, #flying-carpet-wrapper');
removeDOMElement(non_subscriber, ...amp_ads);
} else {
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {

View file

@ -313,6 +313,7 @@
"*://*.nrpyrenees.fr/*",
"*://*.nrz.de/*",
"*://*.ntnews.com.au/*",
"*://*.nwzonline.de/*",
"*://*.nybooks.com/*",
"*://*.nydailynews.com/*",
"*://*.nymag.com/*",
@ -494,5 +495,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.3.5"
"version": "2.1.3.6"
}

View file

@ -172,6 +172,7 @@ var defaultSites =
"Newsweek": "newsweek.com",
"Nikkei Asian Review": "asia.nikkei.com",
"Noordhollands Dagblad": "noordhollandsdagblad.nl",
"Nordwest Zeitung": "nwzonline.de",
"NRC Handelsblad": "nrc.nl",
"O Estado de S. Paulo": "estadao.com.br",
"O Globo": "globo.com",