mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Fix Telegraaf.nl
This commit is contained in:
parent
df7e71367e
commit
5d723ab0de
2 changed files with 5 additions and 4 deletions
|
@ -6,6 +6,7 @@ Add McClatchy DC
|
|||
Add Mundo Deportivo
|
||||
Add ZeroHedge
|
||||
Fix Substack (split content)
|
||||
Fix Telegraaf.nl
|
||||
Fix TheSaturdayPaper.com.au
|
||||
|
||||
* v2.9.9.0 (2022-12-27)
|
||||
|
|
|
@ -2106,11 +2106,11 @@ else if (matchDomain('telegraaf.nl')) {
|
|||
window.location.reload(true);
|
||||
}, 500);
|
||||
}
|
||||
let article_wrapper = document.querySelector('.ArticlePageWrapper__uid');
|
||||
let spotx_banner = document.querySelector('.ArticleBodyBlocks__inlineArticleSpotXBanner');
|
||||
let paywall = document.querySelector('.MeteringNotification__backdrop');
|
||||
removeDOMElement(spotx_banner, paywall);
|
||||
let banners = document.querySelectorAll('.ArticleBodyBlocks__inlineArticleSpotXBanner, .WebpushOptin');
|
||||
removeDOMElement(paywall, ...banners);
|
||||
let premium = document.querySelector('.PremiumLabelWithLine');
|
||||
let article_wrapper = document.querySelector('.ArticlePageWrapper__uid');
|
||||
let article_id = article_wrapper ? article_wrapper.innerText : '123';
|
||||
let article_body_done = window.location.pathname.startsWith('/video/') || document.querySelector('#articleBody' + article_id);
|
||||
if (premium && !article_body_done) {
|
||||
|
@ -2144,7 +2144,7 @@ else if (matchDomain('telegraaf.nl')) {
|
|||
div_elem.appendChild(p_div);
|
||||
});
|
||||
div_main.appendChild(div_elem);
|
||||
article_body.insertBefore(div_main, article_body.firstChild);
|
||||
article_body.firstChild.after(div_main);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue