mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:17:47 +01:00
Merge pull request #333 from cimke/fix/bloomberg-support
Remove Bloomberg paywall
This commit is contained in:
commit
b37337fa7a
1 changed files with 90 additions and 77 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue