Fix Knack.be & LeVif.be
This commit is contained in:
parent
da810cc44f
commit
e5d362bd3a
@ -858,7 +858,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
else {
|
||||
// block script for additional MediaNews Group sites (opt-in to custom sites)
|
||||
var usa_mng_domains = grouped_sites['###_usa_mng'];
|
||||
var usa_mng_domain = (details.url.match(/\.com\/wp-content\/plugins\/dfm(-pushly|_zeus)\/.+\.js/) && ['script'].includes(details.type) &&
|
||||
var usa_mng_domain = (details.url.match(/\.com\/wp-content\/plugins\/dfm(-|_).+\.js/) && ['script'].includes(details.type) &&
|
||||
!matchUrlDomain(usa_mng_domains, header_referer) && enabledSites.includes('###_usa_mng'));
|
||||
if (usa_mng_domain)
|
||||
usa_mng_domains = customAddRules(usa_mng_domains, '', blockedRegexes['denverpost.com']);
|
||||
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
Post-release
|
||||
Add De Tijd & L'Echo
|
||||
Add group Mediahuis Noord (opt-in to custom sites for unlisted)
|
||||
Fix Knack.be & LeVif.be
|
||||
|
||||
* v2.6.7.0 (2022-05-01)
|
||||
Add Puck.news
|
||||
|
@ -195,6 +195,11 @@ function cs_code_elems(elems) {
|
||||
}
|
||||
if (elem.rm_attrib)
|
||||
item.removeAttribute(elem.rm_attrib);
|
||||
if (elem.set_attrib && elem.set_attrib.includes('|')) {
|
||||
let attrib = elem.set_attrib.split('|')[0];
|
||||
let value = elem.set_attrib.split('|')[1];
|
||||
item.setAttribute(attrib, value);
|
||||
}
|
||||
if (elem.elems)
|
||||
cs_code_elems(elem.elems);
|
||||
}
|
||||
@ -1784,18 +1789,10 @@ else if (matchDomain('ftm.nl')) {
|
||||
}
|
||||
|
||||
else if (matchDomain(['knack.be', 'levif.be'])) {
|
||||
let paywall = document.querySelector('[class$="Paywall"], #paywall-modal-below');
|
||||
let paywall = document.querySelector('#paywall-modal');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let hidden_body = document.querySelector('div.rmgDetail-body div');
|
||||
if (hidden_body) {
|
||||
hidden_body.removeAttribute('class');
|
||||
let body_text = hidden_body.innerText.replace(/(?:^|[\w\"\'])(\.|\?|!)(?=[A-Za-zÀ-ÿ\"\']{2,})/gm, "$&\n\n");
|
||||
hidden_body.innerText = body_text;
|
||||
let intro_par = document.querySelector('div.rmgDetail-body p');
|
||||
if (intro_par && intro_par.innerText.length > 200)
|
||||
removeDOMElement(intro_par);
|
||||
}
|
||||
document.querySelector('html').setAttribute('style', 'overflow-y: visible !important');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,5 +42,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.6.7.1"
|
||||
"version": "2.6.7.2"
|
||||
}
|
||||
|
@ -659,5 +659,5 @@
|
||||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.6.7.1"
|
||||
"version": "2.6.7.2"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user