Fix The New Yorker paywall-banner

This commit is contained in:
magnolia1234 2020-02-22 13:10:08 +01:00 committed by GitHub
parent e21a47021a
commit d2ba6b86e8

View File

@ -413,6 +413,11 @@ if (window.location.href.indexOf("lc.nl") !== -1 || window.location.href.indexOf
});
}
if (window.location.href.indexOf("newyorker.com") !== -1) {
const paywall_bar = document.querySelector('.paywall-bar');
removeDOMElement(paywall_bar);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {