Fix The New Yorker (homepage)

This commit is contained in:
magnolia1234 2021-10-20 21:02:32 +02:00
parent 59f44256ad
commit 8b6906f1ed
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Fix Business Standard
Fix Il Tirreno (GElocal.it) Fix Il Tirreno (GElocal.it)
Fix Financial Times (amp) Fix Financial Times (amp)
Fix La Croix (timing) Fix La Croix (timing)
Fix The New Yorker (homepage)
Fix Trouw.nl (timing) Fix Trouw.nl (timing)
Update custom sites (block regex for default sites) Update custom sites (block regex for default sites)

View file

@ -2212,7 +2212,7 @@ else if (matchDomain('newrepublic.com')) {
removeDOMElement(pw_opups); removeDOMElement(pw_opups);
} }
else if (matchDomain('newyorker.com')) { else if (matchDomain('newyorker.com') && window.location.href.split('?')[0].match(/\.com\/.+\//) ) {
let paywall_bar = document.querySelector('.paywall-bar'); let paywall_bar = document.querySelector('.paywall-bar');
removeDOMElement(paywall_bar); removeDOMElement(paywall_bar);
let invisible_assets = document.querySelectorAll('.responsive-asset--invisible'); let invisible_assets = document.querySelectorAll('.responsive-asset--invisible');