Fix Koelner Stadt-Anzeiger & Koelnische Rundschau

This commit is contained in:
magnolia1234 2022-06-24 12:39:49 +02:00
parent 8b811af497
commit 5472298742
2 changed files with 5 additions and 15 deletions

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Business Standard
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
Fix LesEchos.fr
* v2.7.2.0 (2022-06-06)

View file

@ -599,23 +599,12 @@ else if (matchDomain('krautreporter.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) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
let json_text = JSON.parse(json_script.text).articleBody;
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;
}
}
let span_hidden = document.querySelector('span.hide-paid-content');
if (span_hidden)
span_hidden.classList.remove('hide-paid-content');
}
}