diff --git a/README.md b/README.md index ec6d374..c4504ab 100644 --- a/README.md +++ b/README.md @@ -366,7 +366,8 @@ Grouped in options:\ [Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) - [Schweriner Volkszeitung](https://www.svz.de) - [Süddeutsche Zeitung](https://www.sueddeutsche.de) - -[Westfalen-Blatt](https://www.westfalen-blatt.de) +[Westfalen-Blatt](https://www.westfalen-blatt.de) - +[Westfälische Nachrichten](https://www.wn.de) Grouped in options:\ *Funke Mediengruppe* sites like\ diff --git a/background.js b/background.js index d6012d2..6338cf7 100644 --- a/background.js +++ b/background.js @@ -174,6 +174,7 @@ var allow_cookies_default = [ 'venturebeat.com', 'washingtonpost.com', 'westfalen-blatt.de', + 'wn.de', 'worldpoliticsreview.com', 'zeit.de', ]; @@ -247,6 +248,7 @@ var use_google_bot_default = [ 'usinenouvelle.com', 'westfalen-blatt.de', 'wired.com', + 'wn.de', 'worldpoliticsreview.com', 'wsj.com', 'zeit.de', @@ -415,6 +417,7 @@ var blockedRegexes = { '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)/, 'westfalen-blatt.de': /cdn\.ampproject\.org\/.+\/v\d\/amp-(ad|subscriptions)-.+\.js/, + 'wn.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\/)/ }; @@ -1228,7 +1231,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', '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)); + 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', 'wn.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) { diff --git a/changelog.txt b/changelog.txt index dfd3bb3..d28dea8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Westfaelische Nachrichten (Germany) Fix Messaggero Veneto (GElocal) * v2.3.9.0 (2021-10-10) diff --git a/contentScript.js b/contentScript.js index 69e0dec..4bd3d38 100644 --- a/contentScript.js +++ b/contentScript.js @@ -587,14 +587,14 @@ else if (matchDomain('sueddeutsche.de')) { }, 500); // Delay (in milliseconds) } -else if (matchDomain('westfalen-blatt.de')) { +else if (matchDomain(['westfalen-blatt.de', 'wn.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"]'); + let amp_ads = document.querySelectorAll('amp-ad, section[class^="fp-ad"]'); removeDOMElement(...amp_ads); } diff --git a/manifest.json b/manifest.json index 2552b2f..cc92006 100644 --- a/manifest.json +++ b/manifest.json @@ -522,6 +522,7 @@ "*://*.westernadvocate.com.au/*", "*://*.westfalen-blatt.de/*", "*://*.wired.com/*", + "*://*.wn.de/*", "*://*.worldpoliticsreview.com/*", "*://*.wp.de/*", "*://*.wr.de/*", @@ -565,5 +566,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.9.1" + "version": "2.3.9.2" } \ No newline at end of file diff --git a/sites.js b/sites.js index 6d0a0a0..f4f45e4 100644 --- a/sites.js +++ b/sites.js @@ -298,6 +298,7 @@ var defaultSites = "Volkskrant": "volkskrant.nl", "WAtoday": "watoday.com.au", "Westfalen-Blatt": "westfalen-blatt.de", + "Westfälische Nachrichten": "wn.de", "Winston-Salem Journal": "journalnow.com", "Wired": "wired.com", "World Politics Review": "worldpoliticsreview.com",