Fix The New Yorker paywall-banner

This commit is contained in:
magnolia1234 2020-02-22 13:11:00 +01:00 committed by GitHub
parent 0dad06d5eb
commit ffc524248b

View file

@ -9,7 +9,7 @@ if (!localstorage_hold){
// Content workarounds/domain
if (location.hostname.endsWith('rep.repubblica.it')) {
if (location.href.includes('/pwa/')) {
if (location.href.includes('/pwa/')) {
location.href = location.href.replace('/pwa/', '/ws/detail/');
}
if (location.href.includes('/ws/detail/')) {
@ -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) {