Add SpringerMedizin.de

This commit is contained in:
magnolia1234 2023-09-10 18:07:50 +02:00
parent 07093694fd
commit b4da397980
7 changed files with 35 additions and 2 deletions

View file

@ -588,6 +588,7 @@ Grouped in options:\
[Piqd](https://www.piqd.de) -
[Rhein-Zeitung](https://www.rhein-zeitung.de) -
[Schwäbische Zeitung](https://www.schwaebische.de) -
[Springer Medizin](https://www.springermedizin.de) -
[Weltkunst](https://www.weltkunst.de) -
[Westdeutsche Zeitung](https://www.wz.de)

View file

@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Add PourLaScience.fr
Add SpringerMedizin.de
Fix Automobilwoche.de (js)
Fix Inc42 (js)
Fix MarketWatch (amp-redirect)

View file

@ -1122,6 +1122,26 @@ else if (matchDomain('spiegel.de')) {
}
}
else if (matchDomain('springermedizin.de')) {
let paywall = document.querySelector('div#pay-wall');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text);
if (json) {
let json_text = json.articleBody;
let article = document.querySelector('div > p.intro--paragraph');
if (json_text && article) {
let article_new = document.createElement('p');
article_new.innerText = json_text;
article.parentNode.replaceChild(article_new, article);
}
}
}
}
}
else if (matchDomain(['stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'schwarzwaelder-bote.de']) || matchDomain(de_mhs_custom_domains)) {
let banner = document.querySelector('div.mod-paywall');
removeDOMElement(banner);

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.2.8"
"version": "3.3.2.9"
}

View file

@ -601,6 +601,7 @@
"*://*.spglobal.com/*",
"*://*.spiegel.de/*",
"*://*.sportico.com/*",
"*://*.springermedizin.de/*",
"*://*.standard.co.uk/*",
"*://*.standard.net.au/*",
"*://*.star-telegram.com/*",
@ -791,5 +792,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.2.8"
"version": "3.3.2.9"
}

View file

@ -1937,6 +1937,10 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.blueconic\.net\//
},
"Springer Medizin": {
domain: "springermedizin.de",
allow_cookies: 1
},
"Star Tribune": {
domain: "startribune.com",
allow_cookies: 1

View file

@ -96,6 +96,12 @@
"block_regex": "\\.scientificamerican\\.com\\/api\\/tinypass\\.min\\.js",
"upd_version": "3.3.1.4"
},
"Springer Medizin": {
"domain": "springermedizin.de",
"allow_cookies": 1,
"ld_json": "div#pay-wall|div>p.intro--paragraph",
"upd_version": "3.3.2.9"
},
"Tes Magazine": {
"domain": "tes.com",
"remove_cookies_select_drop": ["tg_paywall"],