mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 04:43:42 +02:00
Fix ilManifesto.it (timing)
This commit is contained in:
parent
db9229c76c
commit
6f463457af
4 changed files with 39 additions and 36 deletions
|
@ -4,6 +4,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release
|
|||
|
||||
Post-release
|
||||
Remove Iltalehti.fi (fix obsolete)
|
||||
Fix ilManifesto.it (timing)
|
||||
Fix iPolitics.ca (refresh)
|
||||
Fix Sciences et Avenir.fr (css)
|
||||
|
||||
|
|
|
@ -1771,6 +1771,7 @@ else if (matchDomain('ilfoglio.it')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('ilmanifesto.it')) {
|
||||
window.setTimeout(function () {
|
||||
if (window.location.pathname.match(/((\w)+(\-)+){3,}/)) {
|
||||
let paywall = document.querySelector('div[class^="PostPaywall_PostPaywall__"]');
|
||||
if (paywall) {
|
||||
|
@ -1799,6 +1800,7 @@ else if (matchDomain('ilmanifesto.it')) {
|
|||
window.location.reload(true);
|
||||
}, 1000);
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
else if (matchDomain(['iltirreno.it', 'lanuovasardegna.it'])) {
|
||||
|
@ -2049,13 +2051,13 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
|||
span.innerText = child.text;
|
||||
elem.appendChild(span);
|
||||
}
|
||||
} else if (child.href && child.children[0].text) {
|
||||
} else if (child.children && child.children.length && child.children[0].text && child.children[0].text.length > 2) {
|
||||
if (child.href || (child.relation && child.relation.follow && child.relation.follow.url)) {
|
||||
let par_link = document.createElement('a');
|
||||
par_link.href = child.href;
|
||||
par_link.href = child.href || child.relation.follow.url;
|
||||
par_link.innerText = child.children[0].text;
|
||||
elem.appendChild(par_link);
|
||||
} else if (child.children.length && child.children[0].text) {
|
||||
if (child.children[0].text.length > 2) {
|
||||
} else {
|
||||
let span = document.createElement('span');
|
||||
span.innerText = child.children[0].text;
|
||||
elem.appendChild(span);
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.0.9.2"
|
||||
"version": "3.0.9.3"
|
||||
}
|
||||
|
|
|
@ -736,5 +736,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.0.9.2"
|
||||
"version": "3.0.9.3"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue