Fix-update Repubblica.it

This commit is contained in:
magnolia1234 2021-04-19 19:14:58 +02:00
parent 871643bb79
commit dbe8ff0649
3 changed files with 6 additions and 4 deletions

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update NyTeknik (images)
Fix-update Repubblica.it
* v2.1.7.0 (2021-04-18)
Add NyTeknik (Sweden)

View file

@ -1077,11 +1077,12 @@ else if (matchDomain('rep.repubblica.it')) {
else if (domain = matchDomain(it_repubblica_domains)) {
let url = window.location.href;
if (!url.includes('/amp/')) {
let premium = document.querySelector('.paywall-adagio');
let premium = document.querySelector('.paywall-adagio, #paywall');
removeDOMElement(premium);
window.setTimeout(function () {
if (premium && (domain === 'lastampa.it'))
window.location.href = url.split('?')[0] + '/amp/';
let amphtml = document.querySelector('link[rel="amphtml"]');
if (premium && amphtml && (['lastampa.it', 'repubblica.it'].includes(domain)))
window.location.href = amphtml.href;
let article_body = document.querySelector('div#article-body[style]');
if (article_body)
article_body.removeAttribute('style');

View file

@ -503,5 +503,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.7.1"
"version": "2.1.7.2"
}