Remove fortune.com paywall (#1252)

* update UA for haaretz, themarker

* remove paywall for fortune.com
This commit is contained in:
InterAl 2023-02-19 21:05:20 +02:00 committed by GitHub
parent 997f83c778
commit 5bb7dc1665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -713,6 +713,13 @@ if (matchDomain('elmercurio.com')) {
const ads = document.querySelectorAll('amp-ad, div.ad-banner, div.advert-fly-carpet-container, div.inline-advert');
removeDOMElement(...defaultMeters, ...ads);
}
} else if (matchDomain('fortune.com')) {
const paywalledArticle = document.querySelector('.paywall.paywallActive');
if (paywalledArticle) {
for (const clazz of ['paywall', 'paywallActive']) {
paywalledArticle.classList.remove(clazz);
}
}
}
function matchDomain (domains) {