diff --git a/README.md b/README.md index 7742bb8..d65f195 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,8 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid. [Die Zeit](https://www.zeit.de) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Handelsblatt](https://www.handelsblatt.com) - +[Hannoversche Allgemeine Zeitung](https://www.haz.de) - +[Leipziger Volkszeitung](https://www.lvz.de) - [Neue Ruhr Zeitung](https://www.nrz.de) - [Süddeutsche Zeitung](https://www.sueddeutsche.de) - [Westdeutsche Allgemeine Zeitung](https://www.waz.de) - diff --git a/background.js b/background.js index d1be480..821c48a 100644 --- a/background.js +++ b/background.js @@ -64,6 +64,7 @@ var allow_cookies = [ 'nzz.ch', 'parool.nl', 'quora.com', +'repubblica.it', 'rollingstone.com', 'scribd.com', 'seekingalpha.com', diff --git a/changelog.txt b/changelog.txt index 73769f7..9cacafe 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Hannoversche Allgemeine Zeitung +Add Leipziger Volkszeitung Add Neue Ruhr Zeitung Add Westdeutsche Allgemeine Zeitung Add Westfalenpost diff --git a/contentScript.js b/contentScript.js index b6013d6..5b9cf44 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1144,6 +1144,22 @@ else if (matchDomain(["nrz.de", "wp.de", "wr.de", "waz.de"])) { } } +else if (matchDomain(["haz.de", "lvz.de"])) { + let paidcontent_intro = document.querySelector('div.pdb-article-body-paidcontentintro'); + if (paidcontent_intro) { + paidcontent_intro.classList.remove('pdb-article-body-paidcontentintro'); + let json_script = document.querySelector('div.pdb-article > script[type="application/ld+json"]'); + let json_text = JSON.parse(json_script.text).articleBody; + if (json_text) { + let pdb_richtext_field = document.querySelectorAll('div.pdb-richtext-field'); + if (pdb_richtext_field[1]) + pdb_richtext_field[1].innerText = json_text; + } + let paidcontent_reg = document.querySelector('div.pdb-article-paidcontent-registration'); + removeDOMElement(paidcontent_reg); + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/lp/manifest.json b/lp/manifest.json index 0637131..1fcb26d 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -122,6 +122,7 @@ "*://*.haaretz.com/*", "*://*.handelsblatt.com/*", "*://*.harpers.org/*", + "*://*.haz.de/*", "*://*.hbr.org/*", "*://*.hbrtaiwan.com/*", "*://*.heraldsun.com.au/*", @@ -163,6 +164,7 @@ "*://*.loebclassics.com/*", "*://*.lopinion.fr/*", "*://*.lrb.co.uk/*", + "*://*.lvz.de/*", "*://*.mcall.com/*", "*://*.medium.com/*", "*://*.mercuriovalpo.cl/*", @@ -317,5 +319,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.8.4" + "version": "1.8.8.5" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index a6f842f..493f231 100644 --- a/manifest.json +++ b/manifest.json @@ -40,5 +40,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.8.4" + "version": "1.8.8.5" } \ No newline at end of file diff --git a/sites.js b/sites.js index a0bce43..d29b323 100644 --- a/sites.js +++ b/sites.js @@ -65,6 +65,7 @@ var defaultSites = "Haaretz English": "haaretz.com", "Haaretz": "haaretz.co.il", "Handelsblatt": "handelsblatt.com", + "Hannoversche Allgemeine Zeitung": "haz.de", "Harper's Magazine": "harpers.org", "Hartford Courant": "courant.com", "Harvard Business Review": "hbr.org", @@ -93,6 +94,7 @@ var defaultSites = "Le Scienze": "lescienze.it", "Le Soir": "lesoir.be", "Leeuwarder Courant": "lc.nl", + "Leipziger Volkszeitung": "lvz.de", "Les Échos": "lesechos.fr", "Libération (free articles only)": "liberation.fr", "LimesOnline": "limesonline.com",