mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Fix Telegraaf.nl
This commit is contained in:
parent
df7e71367e
commit
5d723ab0de
@ -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)
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user