Merge pull request #333 from cimke/fix/bloomberg-support

Remove Bloomberg paywall
This commit is contained in:
ghost 2019-10-15 21:00:33 -07:00 committed by GitHub
commit b37337fa7a

View file

@ -89,3 +89,16 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
}, 300); // Delay (in milliseconds)
}
}
if (window.location.href.indexOf("bloomberg.com") !== -1) {
console.log('inside bloomberg')
const paywall = document.getElementById('paywall-banner');
removeDOMElement(paywall);
}
function removeDOMElement(...elements) {
for (let element of elements) {
if (element) element.remove();
}
}