mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:07:47 +01:00
Wsj hide banners (close-btn obsolete)
This commit is contained in:
parent
cdc73c75a8
commit
0f71ff81fc
1 changed files with 7 additions and 0 deletions
|
@ -69,11 +69,18 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
}
|
||||
} else if (window.location.href.indexOf("wsj.com") !== -1) {
|
||||
if (location.href.includes('/articles/')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const paywall = document.getElementById('cx-scrim');
|
||||
const candybar = document.getElementById('cx-candybar');
|
||||
removeDOMElement(paywall, candybar);
|
||||
});
|
||||
/**
|
||||
setTimeout(function () {
|
||||
const close_button = document.querySelector('.close-btn');
|
||||
if (close_button)
|
||||
close_button.click();
|
||||
}, 2000);
|
||||
**/
|
||||
}
|
||||
} else if (window.location.href.indexOf("washingtonpost.com") !== -1) {
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
|
|
Loading…
Reference in a new issue