Fix Telegraaf.nl

This commit is contained in:
magnolia1234 2023-01-01 12:06:53 +01:00
parent df7e71367e
commit 5d723ab0de
2 changed files with 5 additions and 4 deletions

View File

@ -6,6 +6,7 @@ Add McClatchy DC
Add Mundo Deportivo Add Mundo Deportivo
Add ZeroHedge Add ZeroHedge
Fix Substack (split content) Fix Substack (split content)
Fix Telegraaf.nl
Fix TheSaturdayPaper.com.au Fix TheSaturdayPaper.com.au
* v2.9.9.0 (2022-12-27) * v2.9.9.0 (2022-12-27)

View File

@ -2106,11 +2106,11 @@ else if (matchDomain('telegraaf.nl')) {
window.location.reload(true); window.location.reload(true);
}, 500); }, 500);
} }
let article_wrapper = document.querySelector('.ArticlePageWrapper__uid');
let spotx_banner = document.querySelector('.ArticleBodyBlocks__inlineArticleSpotXBanner');
let paywall = document.querySelector('.MeteringNotification__backdrop'); 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 premium = document.querySelector('.PremiumLabelWithLine');
let article_wrapper = document.querySelector('.ArticlePageWrapper__uid');
let article_id = article_wrapper ? article_wrapper.innerText : '123'; let article_id = article_wrapper ? article_wrapper.innerText : '123';
let article_body_done = window.location.pathname.startsWith('/video/') || document.querySelector('#articleBody' + article_id); let article_body_done = window.location.pathname.startsWith('/video/') || document.querySelector('#articleBody' + article_id);
if (premium && !article_body_done) { if (premium && !article_body_done) {
@ -2144,7 +2144,7 @@ else if (matchDomain('telegraaf.nl')) {
div_elem.appendChild(p_div); div_elem.appendChild(p_div);
}); });
div_main.appendChild(div_elem); div_main.appendChild(div_elem);
article_body.insertBefore(div_main, article_body.firstChild); article_body.firstChild.after(div_main);
} }
} }
} }