mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Add SpringerMedizin.de
This commit is contained in:
parent
07093694fd
commit
b4da397980
7 changed files with 35 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.3.2.8"
|
||||
"version": "3.3.2.9"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -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
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue