Add Haz.de & Lvz.de

This commit is contained in:
magnolia1234 2020-10-02 18:41:44 +02:00
parent 88d2e2be7b
commit 13e0849c4f
7 changed files with 27 additions and 2 deletions

View File

@ -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) -

View File

@ -64,6 +64,7 @@ var allow_cookies = [
'nzz.ch',
'parool.nl',
'quora.com',
'repubblica.it',
'rollingstone.com',
'scribd.com',
'seekingalpha.com',

View File

@ -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

View File

@ -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) {

View File

@ -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"
}

View File

@ -40,5 +40,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.8.4"
"version": "1.8.8.5"
}

View File

@ -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",