From d62d9a63c74954fda72115de79b4a81e9c14382a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 8 Nov 2019 23:26:06 +0100 Subject: [PATCH] Fix Bloomberg bot-alert A captcha popped up (earlier fixed for Chrome). --- contentScript.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contentScript.js b/contentScript.js index bbbc6f8..17e9c30 100644 --- a/contentScript.js +++ b/contentScript.js @@ -100,8 +100,10 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) { } if (window.location.href.indexOf("bloomberg.com") !== -1) { - const paywall = document.getElementById('paywall-banner'); - removeDOMElement(paywall); + document.addEventListener('DOMContentLoaded', () => { + const paywall = document.getElementById('paywall-banner'); + removeDOMElement(paywall); + }); } if (window.location.href.indexOf('telegraaf.nl') !== -1) {