mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 01:44:15 +01:00
Remove paywall from DOM
This commit is contained in:
parent
5fe7d7c40f
commit
63463371f7
1 changed files with 12 additions and 0 deletions
|
@ -89,3 +89,15 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
||||||
}, 300); // Delay (in milliseconds)
|
}, 300); // Delay (in milliseconds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.href.indexOf("bloombergquint.com") !== -1) {
|
||||||
|
const articlesLeftModal = document.getElementsByClassName('paywall-meter-module__story-paywall-container__1UgCE')[0];
|
||||||
|
const paywall = document.getElementById('paywallDmp');
|
||||||
|
removeDOMElement(articlesLeftModal, paywall);
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeDOMElement(...elements) {
|
||||||
|
for (let element of elements) {
|
||||||
|
if (element) element.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue