From 3ff3389dfd3f1f6dd5a1f5e0c8d8594348532f2f Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 8 Apr 2022 16:38:28 +0200 Subject: [PATCH] Add Nuernberger Nachrichten --- README.md | 3 ++- changelog.txt | 1 + contentScript.js | 8 ++++++++ custom/manifest.json | 2 +- manifest.json | 3 ++- sites.js | 4 ++++ sites_updated.json | 48 ++++---------------------------------------- 7 files changed, 22 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 01ab3ff..a102125 100755 --- a/README.md +++ b/README.md @@ -481,8 +481,9 @@ Grouped in options:\ [Kurier.at](https://kurier.at) - [Mitteldeutsche Zeitung](https://www.mz.de) - [Münstersche Zeitung](https://www.muensterschezeitung.de) - -[Neue Osnabrücker Zeitung](https://www.noz.de]) - +[Neue Osnabrücker Zeitung](https://www.noz.de) - [Nordwest Zeitung](https://www.nwzonline.de) - +[Nürnberger Nachrichten](https://www.nn.de) - [Piqd.de](https://www.piqd.de) - [Rhein-Zeitung](https://www.rhein-zeitung.de) - [Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) - diff --git a/changelog.txt b/changelog.txt index 4cff4bc..87b9099 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add El Periodico Extremadura +Add Nuernberger Nachrichten Remove Algemeen Dagblad Regional (fix obsolete) Fix The Globe and Mail (sections) Fix The Hill Times (text) diff --git a/contentScript.js b/contentScript.js index c03be7c..bf5e74e 100755 --- a/contentScript.js +++ b/contentScript.js @@ -675,6 +675,14 @@ else if (matchDomain(['mz.de', 'volksstimme.de'])) { } } +else if (matchDomain('nn.de')) { + let ad_billboard = document.querySelector('div#ad-Billboard'); + if (ad_billboard && ad_billboard.parentNode) + removeDOMElement(ad_billboard.parentNode); + let ads = document.querySelectorAll('div[id^="clsdiv_"]'); + removeDOMElement(...ads); +} + else if (matchDomain(['noz.de', 'nwzonline.de', 'shz.de', 'svz.de'])) { if (window.location.pathname.match(/(-amp\.html|\/amp)$/)) { amp_unhide_access_hide('="NOT data.reduced"', '="data.reduced"', 'amp-ad, amp-embed, #flying-carpet-wrapper'); diff --git a/custom/manifest.json b/custom/manifest.json index f689075..1bc391b 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -42,5 +42,5 @@ "webRequestBlocking", "" ], - "version": "2.6.3.3" + "version": "2.6.3.4" } diff --git a/manifest.json b/manifest.json index ce8f0e0..2813b8b 100755 --- a/manifest.json +++ b/manifest.json @@ -405,6 +405,7 @@ "*://*.nikkei.com/*", "*://*.nj.com/*", "*://*.nknews.org/*", + "*://*.nn.de/*", "*://*.nola.com/*", "*://*.noordhollandsdagblad.nl/*", "*://*.nordeclair.fr/*", @@ -651,5 +652,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.6.3.3" + "version": "2.6.3.4" } diff --git a/sites.js b/sites.js index eb2cdc5..4b402c4 100755 --- a/sites.js +++ b/sites.js @@ -1249,6 +1249,10 @@ var defaultSites = { domain: "nrc.nl", remove_cookies_select_drop: ["counter"] }, + "Nürnberger Nachrichten": { + domain: "nn.de", + block_regex: /(cdn\.cxense\.com\/|\.piano\.io\/)/ + }, "NyTeknik": { domain: "nyteknik.se", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index b24e76e..38d64bc 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -21,45 +21,11 @@ "block_regex": "(\\.com\\.au\\/remote\\/identity\\/rampart\\/latest\\/rampart\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad|subscriptions)-.+\\.js)", "amp_unhide": 1 }, - "Badische Neueste Nachrichten": { - "allow_cookies": 1, - "domain": "bnn.de", - "useragent": "googlebot" - }, - "Financial Times (not Chinese)": { - "domain": "ft.com", - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad|subscriptions)-.+\\.js", - "useragent": "googlebot" - }, - "Folha de S. Paulo": { - "domain": "###_br_folha", - "group": [ - "folha.uol.com.br", - "blogfolha.uol.com.br" - ], - "allow_cookies": 1, - "block_regex": "(\\.folha\\.uol\\.com\\.br\\/paywall\\/js\\/|paywall\\.folha\\.uol\\.com\\.br\\/|js\\.matheranalytics\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js)", - "useragent": "googlebot" - }, - "Franc-Tireur": { - "domain": "franc-tireur.fr", - "allow_cookies": 1, - "block_regex": "\\.poool\\.fr\\/" - }, "Le Nouvel Economiste": { "domain": "lenouveleconomiste.fr", "allow_cookies": 1, "useragent": "googlebot" }, - "Mid-Day": { - "domain": "mid-day.com", - "allow_cookies": 1, - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js", - "amp_redirect": { - "paywall": "#widget-_csc" - }, - "amp_unhide": 1 - }, "Münstersche Zeitung": { "allow_cookies": 1, "domain": "muensterschezeitung.de", @@ -69,6 +35,10 @@ }, "amp_unhide": 1 }, + "Nürnberger Nachrichten": { + "domain": "nn.de", + "block_regex": "(cdn\\.cxense\\.com\\/|\\.piano\\.io\\/)" + }, "S&P Global": { "domain": "spglobal.com", "allow_cookies": 1, @@ -86,15 +56,5 @@ "allow_cookies": 1, "domain": "wz.de", "useragent": "googlebot" - }, - "Winnipeg Free Press": { - "domain": "winnipegfreepress.com", - "allow_cookies": 1, - "block_regex": "cdn\\.cxense\\.com\\/", - "cs_code": [{ - "cond": ".paidaccess", - "rm_class": "paidaccess" - } - ] } }