Automatically close WSJ popup

merge-requests/1/head
ghost 5 years ago
parent 65b38e1130
commit b5607127f2

@ -82,7 +82,7 @@
### Sites with limited number of free articles ### Sites with limited number of free articles
The free article limit can normally be bypassed by removing cookies for the site.* 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. When coming across a paywall click the cookie icon to remove the cookies then refresh the page.

@ -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(); 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);
}
} }
Loading…
Cancel
Save