From d8e5f1e6732555b069544361d7fd26d5989b33a3 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 13 Mar 2021 15:58:27 +0100 Subject: [PATCH] Add Mitteldeutsche Zeitung (Germany) --- README.md | 1 + background.js | 1 + changelog.txt | 1 + contentScript.js | 8 ++++++++ manifest.json | 1 + sites.js | 1 + 6 files changed, 13 insertions(+) diff --git a/README.md b/README.md index ce3af757..0ddb966c 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,7 @@ Groupe Rossel sites (grouped in options) like [Handelsblatt](https://www.handelsblatt.com) - [Krautreporter.de](https://krautreporter.de) - [Kurier.at](https://kurier.at) - +[Mitteldeutsche Zeitung](https://www.mz-web.de) - [Neue Osnabrücker Zeitung](https://www.noz.de]) - [Piqd.de](https://www.piqd.de) - [Rhein-Zeitung](https://www.rhein-zeitung.de) - diff --git a/background.js b/background.js index d563e672..511b5213 100644 --- a/background.js +++ b/background.js @@ -88,6 +88,7 @@ var allow_cookies_default = [ 'marketwatch.com', 'medium.com', 'modernhealthcare.com', + 'mz-web.de', 'nation.africa', 'nationalgeographic.com', 'nationalpost.com', diff --git a/changelog.txt b/changelog.txt index 42ef896f..6dbc20a8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Mitteldeutsche Zeitung (Germany) Add Thueringische Landeszeitung (Germany) Fix-update Australian Community Media (anti-adblock) Fix-update Gannett Group (identify on xhr only) diff --git a/contentScript.js b/contentScript.js index 95f7a24f..1fdfb569 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2190,6 +2190,14 @@ else if (matchDomain('politicaexterior.com')) { } } +else if (matchDomain('mz-web.de')) { + let platzhalter = document.querySelector('#c1-template-platzhalter'); + removeDOMElement(platzhalter); + let paid_content = document.querySelector('.hide-paid-content'); + if (paid_content) + paid_content.classList.remove('hide-paid-content'); +} + else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) csDone = true; diff --git a/manifest.json b/manifest.json index fe91ccdd..c664ab28 100644 --- a/manifest.json +++ b/manifest.json @@ -280,6 +280,7 @@ "*://*.modernhealthcare.com/*", "*://*.morgenpost.de/*", "*://*.mv-voice.com/*", + "*://*.mz-web.de/*", "*://*.nation.africa/*", "*://*.nationalgeographic.com/*", "*://*.nationalpost.com/*", diff --git a/sites.js b/sites.js index 42218aa0..01bf445a 100644 --- a/sites.js +++ b/sites.js @@ -152,6 +152,7 @@ var defaultSites = "Miami Herald": "miamiherald.com", "MIT Sloan Management Review": "sloanreview.mit.edu", "MIT Technology Review": "technologyreview.com", + "Mitteldeutsche Zeitung": "mz-web.de", "Modern Healthcare": "modernhealthcare.com", "National Geographic USA": "nationalgeographic.com", "Mountain View Voice": "mv-voice.com",