Fix Espresso.repubblica.it (amp)

This commit is contained in:
magnolia1234 2022-02-11 15:03:33 +01:00
parent 207e88c08f
commit 8057c99960
2 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,7 @@ Fix Australian Community Media (images)
Fix Lequipe.fr & LesEchos.fr (refresh)
Fix New York Magazine sites (cookies)
Fix NYTimes (game stats)
Fix Espresso.repubblica.it (amp)
Fix SeekingAlpha (captcha)
Fix TheTimes.co.uk (epaper & archive)
Update block general paywall script (limit NewsMemory)
@ -1040,7 +1041,7 @@ Add Leeuwarder Courant & Dagblad van het Noorden (Netherlands)
* v1.6.4.2 (2020-02-03)
Add Fd.nl (Googlebot)
Add Spectator.com.au & TheCourier.com.au
Fix Repubblica.it - L'Espresso
Fix Espresso.repubblica.it
Fix TheAdvocate.com.au
* v1.6.4.1 (2020-01-31)

View File

@ -1407,7 +1407,7 @@ else if (matchDomain('rep.repubblica.it')) {
}
}
else if (domain = matchDomain(it_repubblica_domains)) {
else if (matchDomain(it_repubblica_domains)) {
let url = window.location.href.split('?')[0];
if (!url.match(/\amp(\/)?$/)) {
let premium = document.querySelector('#paywall, iframe#__limio_frame');
@ -1432,9 +1432,8 @@ else if (domain = matchDomain(it_repubblica_domains)) {
let ads = document.querySelectorAll('div[id^="adv"]');
removeDOMElement(...ads);
} else {
let paywall;
if (['lastampa.it', 'repubblica.it'].includes(domain)) {
paywall = document.querySelector('div[id^="paywall-banner"]');
if (matchDomain(['lastampa.it', 'www.repubblica.it'])) {
let paywall = document.querySelector('div[id^="paywall-banner"]');
removeDOMElement(paywall);
amp_unhide_subscr_section('amp-ad, amp-embed');
} else {