Automatically close annoying WSJ popup

master
ghost 2019-06-20 21:54:32 -07:00
parent d8cdc2c74c
commit f48feae6ae
2 changed files with 7 additions and 1 deletions

View File

@ -54,3 +54,9 @@ if (window.location.href.indexOf("washingtonpost.com") !== -1) {
}
}
}
if (window.location.href.indexOf("wsj.com") !== -1) {
if (location.href.includes('/articles/')) {
document.querySelector('.close-btn').click();
}
}

View File

@ -19,5 +19,5 @@
"page": "options.html"
},
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
"version": "1.5.1"
"version": "1.5.2"
}