Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
parent
407a4957c4
commit
f5aceea84e
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||||
|
|
||||||
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 New Issue