mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:14:15 +01:00
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
This commit is contained in:
parent
8b811af497
commit
5472298742
2 changed files with 5 additions and 15 deletions
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Fix Business Standard
|
Fix Business Standard
|
||||||
|
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||||
Fix LesEchos.fr
|
Fix LesEchos.fr
|
||||||
|
|
||||||
* v2.7.2.0 (2022-06-06)
|
* v2.7.2.0 (2022-06-06)
|
||||||
|
|
|
@ -599,23 +599,12 @@ else if (matchDomain('krautreporter.de')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(['ksta.de', 'rundschau-online.de'])) {
|
else if (matchDomain(['ksta.de', 'rundschau-online.de'])) {
|
||||||
let paywall = document.querySelector('.pay.wall');
|
let paywall = document.querySelector('div#c1-template-platzhalter');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
let json_script = getArticleJsonScript();
|
let span_hidden = document.querySelector('span.hide-paid-content');
|
||||||
if (json_script) {
|
if (span_hidden)
|
||||||
let json_text = JSON.parse(json_script.text).articleBody;
|
span_hidden.classList.remove('hide-paid-content');
|
||||||
json_text = parseHtmlEntities(json_text);
|
|
||||||
json_text = breakText(json_text);
|
|
||||||
let region = 'ortsmarke';
|
|
||||||
if (window.location.hostname === 'mobil.ksta.de')
|
|
||||||
region = 'district';
|
|
||||||
let article_sel = 'div.article-text > p.selectionShareable:not(.' + region + '), div.dm_article_text > p.selectionShareable:not(.' + region + ')';
|
|
||||||
let article = document.querySelector(article_sel);
|
|
||||||
if (article && json_text) {
|
|
||||||
article.innerText = json_text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue