mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:44:15 +01:00
Merge branch 'master' into feature/Add-bloomberg-qunit
This commit is contained in:
commit
f8f5ad665b
1 changed files with 83 additions and 77 deletions
|
@ -96,6 +96,12 @@ if (window.location.href.indexOf("bloombergquint.com") !== -1) {
|
||||||
removeDOMElement(articlesLeftModal, paywall);
|
removeDOMElement(articlesLeftModal, paywall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.href.indexOf("bloomberg.com") !== -1) {
|
||||||
|
console.log('inside bloomberg')
|
||||||
|
const paywall = document.getElementById('paywall-banner');
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
}
|
||||||
|
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
if (element) element.remove();
|
if (element) element.remove();
|
||||||
|
|
Loading…
Reference in a new issue