Fix NHST Media Group

This commit is contained in:
magnolia1234 2022-09-27 18:04:08 +02:00
parent 47b40061df
commit 5a7a99a0e8
2 changed files with 4 additions and 2 deletions

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Aachener Nachrichten & Zeitung
Add NK News (free articles only)
Fix NHST Media Group
* v2.8.6.0 (2022-09-25)
Add Groupe Centre France (opt-in to custom sites)

View file

@ -1171,7 +1171,7 @@ else if (matchDomain('elle.fr')) {
}
else if (matchDomain(fr_be_groupe_rossel)) {
let ads = document.querySelectorAll('div[id^="article_"], r-pub');
let ads = document.querySelectorAll('div[id^="article_"], r-pub, div#rossel-leader-top');
removeDOMElement(...ads);
}
@ -3873,8 +3873,9 @@ else if (matchDomain(no_nhst_media_domains)) {
window.setTimeout(function () {
let paywall = document.querySelector('iframe#paywall-iframe');
if (paywall && dompurify_loaded) {
let intro = document.querySelector('div.global-article-selector');
let article = paywall.parentNode;
removeDOMElement(paywall);
removeDOMElement(paywall, intro);
fetch(url)
.then(response => {
if (response.ok) {