mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:14:15 +01:00
Fix-update Repubblica.it
This commit is contained in:
parent
13b169a7f9
commit
069ee38673
3 changed files with 18 additions and 10 deletions
|
@ -9,6 +9,7 @@ Fix-update Crain's Chicago Business
|
||||||
Fix-update GenomeWeb sites
|
Fix-update GenomeWeb sites
|
||||||
Fix-update Knack.be
|
Fix-update Knack.be
|
||||||
Fix-update LeScienze.it
|
Fix-update LeScienze.it
|
||||||
|
Fix-update Repubblica.it
|
||||||
Fix-update South China Morning Post (amp)
|
Fix-update South China Morning Post (amp)
|
||||||
|
|
||||||
* v2.2.0.0 (2021-05-09)
|
* v2.2.0.0 (2021-05-09)
|
||||||
|
|
|
@ -1066,15 +1066,22 @@ else if (domain = matchDomain(it_repubblica_domains)) {
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (!url.includes('/amp/')) {
|
if (!url.includes('/amp/')) {
|
||||||
let premium = document.querySelector('.paywall-adagio, #paywall');
|
let premium = document.querySelector('.paywall-adagio, #paywall');
|
||||||
removeDOMElement(premium);
|
if (premium) {
|
||||||
window.setTimeout(function () {
|
removeDOMElement(premium);
|
||||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
if (['lastampa.it', 'repubblica.it'].includes(domain)) {
|
||||||
if (premium && amphtml && (['lastampa.it', 'repubblica.it'].includes(domain)))
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
window.location.href = amphtml.href;
|
if (!amphtml)
|
||||||
let article_body = document.querySelector('div#article-body[style]');
|
amphtml = {href: url.split('?')[0] + 'amp'};
|
||||||
if (article_body)
|
if (amphtml)
|
||||||
article_body.removeAttribute('style');
|
window.location.href = amphtml.href;
|
||||||
}, 500); // Delay (in milliseconds)
|
} else {
|
||||||
|
window.setTimeout(function () {
|
||||||
|
let article_body = document.querySelector('div#article-body[style]');
|
||||||
|
if (article_body)
|
||||||
|
article_body.removeAttribute('style');
|
||||||
|
}, 1000); // Delay (in milliseconds)
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
let paywall;
|
let paywall;
|
||||||
if (['lastampa.it', 'repubblica.it'].includes(domain)) {
|
if (['lastampa.it', 'repubblica.it'].includes(domain)) {
|
||||||
|
|
|
@ -515,5 +515,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.2.0.8"
|
"version": "2.2.0.9"
|
||||||
}
|
}
|
Loading…
Reference in a new issue