Automatically close WSJ popup

master
Adam 2019-06-23 12:42:33 -07:00
parent ca07bc4bd0
commit 1c8516b549
2 changed files with 7 additions and 1 deletions

View File

@ -82,7 +82,7 @@
### Sites with limited number of free articles
The free article limit can normally be bypassed by removing cookies for the site.*
Install my [Cookie Remover](https://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on.
Install the [Cookie Remover](https://addons.mozilla.org/en-US/firefox/addon/cookie-remover/) Add-on.
When coming across a paywall click the cookie icon to remove the cookies then refresh the page.

View File

@ -56,4 +56,10 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) {
document.querySelector('.gdpr-consent-container .consent-page:not(.hide) .continue-btn.button.accept-consent').click();
}
}
} else if (window.location.href.indexOf("wsj.com") !== -1) {
if (location.href.includes('/articles/')) {
setTimeout(function() {
document.querySelector('.close-btn').click();
}, 2000);
}
}