Fix-update GElocal.it (social)

This commit is contained in:
magnolia1234 2021-05-25 18:00:57 +02:00
parent 04884f48ac
commit a47ffd7227
3 changed files with 9 additions and 7 deletions

View File

@ -555,7 +555,7 @@ function add_grouped_sites(init_rules) {
}
for (let domain of it_repubblica_domains) {
allow_cookies.push(domain);
blockedRegexes[domain] = /(scripts\.repubblica\.it\/pw\/pw\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|user-notification)-.+\.js|\.repstatic\.it\/minify\/sites\/gelocal\/.+\/config\.cache\.php)/;
blockedRegexes[domain] = /(scripts\.repubblica\.it\/pw\/pw\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|user-notification)-.+\.js)/;
}
for (let domain of nl_pg_domains)
remove_cookies_select_drop[domain] = ['TID_ID'];

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update GElocal.it (social)
* v2.2.2.0 (2021-05-23)
Add MediaNama (India)

View File

@ -1063,14 +1063,15 @@ else if (domain = matchDomain(it_repubblica_domains)) {
amphtml = {href: (url.split('?')[0] + '/amp').replace('//amp', '/amp')};
if (amphtml)
window.location.href = amphtml.href;
} else {
window.setTimeout(function () {
let article_body = document.querySelector('div#article-body[style]');
if (article_body)
article_body.removeAttribute('style');
}, 1000); // Delay (in milliseconds)
}
}
if (!['lastampa.it', 'repubblica.it'].includes(domain)) {
window.setTimeout(function () {
let article_body = document.querySelector('div#article-body[style]');
if (article_body)
article_body.removeAttribute('style');
}, 1000); // Delay (in milliseconds)
}
} else {
let paywall;
if (['lastampa.it', 'repubblica.it'].includes(domain)) {