diff --git a/contentScript.js b/contentScript.js index 76b9115..1b1f827 100644 --- a/contentScript.js +++ b/contentScript.js @@ -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/')) {