mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:07:47 +01:00
Fix Wsj close-button doesn't exist
This commit is contained in:
parent
061dda00aa
commit
94099458e0
1 changed files with 4 additions and 2 deletions
|
@ -70,8 +70,10 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
|
|||
} else if (window.location.href.indexOf("wsj.com") !== -1) {
|
||||
if (location.href.includes('/articles/')) {
|
||||
setTimeout(function () {
|
||||
document.querySelector('.close-btn').click();
|
||||
}, 2000);
|
||||
const close_button = document.querySelector('.close-btn');
|
||||
if (close_button)
|
||||
close_button.click();
|
||||
}, 300);
|
||||
}
|
||||
} else if (window.location.href.indexOf("washingtonpost.com") !== -1) {
|
||||
if (location.href.includes('/gdpr-consent/')) {
|
||||
|
|
Loading…
Reference in a new issue