mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 06:23:41 +02:00
Fix Mediahuis Noord
This commit is contained in:
parent
aa96d4469e
commit
d8f77d0d6e
5 changed files with 28 additions and 13 deletions
|
@ -5,6 +5,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release
|
||||||
Post-release
|
Post-release
|
||||||
Add Bloomberg Adria
|
Add Bloomberg Adria
|
||||||
Add DN.no (cached articles only)
|
Add DN.no (cached articles only)
|
||||||
|
Fix Mediahuis Noord
|
||||||
Fix mobile user-agent for Google webcache
|
Fix mobile user-agent for Google webcache
|
||||||
|
|
||||||
* v3.0.7.0 (2023-02-26)
|
* v3.0.7.0 (2023-02-26)
|
||||||
|
@ -1673,7 +1674,7 @@ Fix Corriere Della Sera
|
||||||
* v1.6.4.3 (2020-02-12)
|
* v1.6.4.3 (2020-02-12)
|
||||||
Add CommonWealth Magazine Taiwan
|
Add CommonWealth Magazine Taiwan
|
||||||
Add El Mercurio (Chile)
|
Add El Mercurio (Chile)
|
||||||
Add Leeuwarder Courant & Dagblad van het Noorden (Netherlands)
|
Add Lc.nl & DvhN.nl
|
||||||
|
|
||||||
* v1.6.4.2 (2020-02-03)
|
* v1.6.4.2 (2020-02-03)
|
||||||
Add Fd.nl (Googlebot)
|
Add Fd.nl (Googlebot)
|
||||||
|
|
|
@ -2117,7 +2117,7 @@ else if (matchDomain(be_roularta_domains)) {
|
||||||
|
|
||||||
else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||||
if (true) {
|
if (true) {
|
||||||
let paywall = document.querySelector('div.signupPlus');
|
let paywall = document.querySelector('div.signupPlus, div.pw-wrapper');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
let intro = document.querySelector('div.startPayWall');
|
let intro = document.querySelector('div.startPayWall');
|
||||||
removeDOMElement(paywall, intro);
|
removeDOMElement(paywall, intro);
|
||||||
|
@ -2144,8 +2144,8 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||||
let article_html = parser.parseFromString('<div>' + par.code + '</div>', 'text/html');
|
let article_html = parser.parseFromString('<div>' + par.code + '</div>', 'text/html');
|
||||||
elem = article_html.querySelector('div');
|
elem = article_html.querySelector('div');
|
||||||
}
|
}
|
||||||
} else if (par.typename === 'Story_insertbox') {
|
} else if (par.insertbox_head || par.insertbox_text) {
|
||||||
if (par.insertbox_head) {
|
if (par.insertbox_head && par.insertbox_head.length > 2) {
|
||||||
let span = document.createElement('span');
|
let span = document.createElement('span');
|
||||||
span.innerText = par.insertbox_head;
|
span.innerText = par.insertbox_head;
|
||||||
elem.appendChild(span);
|
elem.appendChild(span);
|
||||||
|
@ -2159,6 +2159,7 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||||
let span = document.createElement('span');
|
let span = document.createElement('span');
|
||||||
span.innerText = child.text;
|
span.innerText = child.text;
|
||||||
elem.appendChild(span);
|
elem.appendChild(span);
|
||||||
|
elem.appendChild(document.createElement('br'));
|
||||||
} else if (child.children) {
|
} else if (child.children) {
|
||||||
for (let sub_child of child.children) {
|
for (let sub_child of child.children) {
|
||||||
if (sub_child.text) {
|
if (sub_child.text) {
|
||||||
|
@ -2187,6 +2188,12 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
||||||
par_link.href = child.href;
|
par_link.href = child.href;
|
||||||
par_link.innerText = child.children[0].text;
|
par_link.innerText = child.children[0].text;
|
||||||
elem.appendChild(par_link);
|
elem.appendChild(par_link);
|
||||||
|
} else if (child.children.length && child.children[0].text) {
|
||||||
|
if (child.children[0].text.length > 2) {
|
||||||
|
let span = document.createElement('span');
|
||||||
|
span.innerText = child.children[0].text;
|
||||||
|
elem.appendChild(span);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (par.typename.length > 2)
|
} else if (par.typename.length > 2)
|
||||||
|
@ -4632,15 +4639,19 @@ else if ((domain = matchDomain(usa_lee_ent_domains)) || document.querySelector('
|
||||||
let elem_hidden = document.querySelectorAll('html[class], body[class]');
|
let elem_hidden = document.querySelectorAll('html[class], body[class]');
|
||||||
for (let elem of elem_hidden)
|
for (let elem of elem_hidden)
|
||||||
elem.removeAttribute('class');
|
elem.removeAttribute('class');
|
||||||
} else if (!domain) {
|
} else {
|
||||||
|
if (!domain) {
|
||||||
let subscriber_only = document.querySelectorAll('div.subscriber-only:not(.encrypted-content)');
|
let subscriber_only = document.querySelectorAll('div.subscriber-only:not(.encrypted-content)');
|
||||||
for (let elem of subscriber_only) {
|
for (let elem of subscriber_only) {
|
||||||
elem.removeAttribute('style');
|
elem.removeAttribute('style');
|
||||||
elem.removeAttribute('class');
|
elem.removeAttribute('class');
|
||||||
}
|
}
|
||||||
let banners = document.querySelectorAll('div.subscription-required, div.redacted-overlay, div.tnt-ads-container');
|
let banners = document.querySelectorAll('div.subscription-required, div.redacted-overlay');
|
||||||
removeDOMElement(...banners);
|
removeDOMElement(...banners);
|
||||||
}
|
}
|
||||||
|
let ads = document.querySelectorAll('div.tnt-ads-container');
|
||||||
|
removeDOMElement(...ads);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((domain = matchDomain(usa_mcc_domains)) ||
|
else if ((domain = matchDomain(usa_mcc_domains)) ||
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.0.7.2"
|
"version": "3.0.7.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,6 +342,9 @@
|
||||||
"block_regex": "loader-cdn\\.azureedge\\.net",
|
"block_regex": "loader-cdn\\.azureedge\\.net",
|
||||||
"domain": "pressherald.com"
|
"domain": "pressherald.com"
|
||||||
},
|
},
|
||||||
|
"Quickmath.com": {
|
||||||
|
"domain": "quickmath.com"
|
||||||
|
},
|
||||||
"Reviewjournal.com": {
|
"Reviewjournal.com": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"block_regex": "js\\.matheranalytics\\.com",
|
"block_regex": "js\\.matheranalytics\\.com",
|
||||||
|
|
|
@ -745,5 +745,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.0.7.2"
|
"version": "3.0.7.3"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue