mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:27:48 +01:00
Fix-update Knack.be
This commit is contained in:
parent
06e2c5ea9d
commit
290f6b78cc
3 changed files with 13 additions and 10 deletions
|
@ -5,6 +5,7 @@ Post-release
|
||||||
Add Las Provincias (Spain)
|
Add Las Provincias (Spain)
|
||||||
Add Times of India
|
Add Times of India
|
||||||
Fix-update Crain's Chicago Business
|
Fix-update Crain's Chicago Business
|
||||||
|
Fix-update Knack.be
|
||||||
Fix-update LeScienze.it
|
Fix-update LeScienze.it
|
||||||
Fix-update South China Morning Post (amp)
|
Fix-update South China Morning Post (amp)
|
||||||
|
|
||||||
|
|
|
@ -1215,15 +1215,17 @@ else if (matchDomain('gva.be')) {
|
||||||
|
|
||||||
else if (matchDomain('knack.be')) {
|
else if (matchDomain('knack.be')) {
|
||||||
let paywall = document.querySelector('.rmgPaywall');
|
let paywall = document.querySelector('.rmgPaywall');
|
||||||
removeDOMElement(paywall);
|
if (paywall) {
|
||||||
let hidden_body = document.querySelector('div.rmgDetail-body div');
|
removeDOMElement(paywall);
|
||||||
if (hidden_body) {
|
let hidden_body = document.querySelector('div.rmgDetail-body div');
|
||||||
hidden_body.removeAttribute('class');
|
if (hidden_body) {
|
||||||
let body_text = hidden_body.innerText.replace(/(?:^|[\w\"\'])(\.|\?|!)(?=[A-Za-zÀ-ÿ\"\']{2,})/gm, "$&\n\n");
|
hidden_body.removeAttribute('class');
|
||||||
hidden_body.innerText = body_text;
|
let body_text = hidden_body.innerText.replace(/(?:^|[\w\"\'])(\.|\?|!)(?=[A-Za-zÀ-ÿ\"\']{2,})/gm, "$&\n\n");
|
||||||
let intro_par = document.querySelector('div.rmgDetail-body p');
|
hidden_body.innerText = body_text;
|
||||||
if (intro_par && intro_par.innerText.length > 200)
|
let intro_par = document.querySelector('div.rmgDetail-body p');
|
||||||
removeDOMElement(intro_par);
|
if (intro_par && intro_par.innerText.length > 200)
|
||||||
|
removeDOMElement(intro_par);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -515,5 +515,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.2.0.5"
|
"version": "2.2.0.6"
|
||||||
}
|
}
|
Loading…
Reference in a new issue