mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:37:47 +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
|
||||
Fix Business Standard
|
||||
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||
Fix LesEchos.fr
|
||||
|
||||
* v2.7.2.0 (2022-06-06)
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue