From 0f71ff81fc5d9dadd9abdd07aa0967f3b28717c5 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 22 Oct 2019 15:37:08 +0200 Subject: [PATCH] Wsj hide banners (close-btn obsolete) --- contentScript.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contentScript.js b/contentScript.js index 86a1886..432ce87 100644 --- a/contentScript.js +++ b/contentScript.js @@ -69,11 +69,18 @@ if (window.location.href.indexOf("bizjournals.com") !== -1) { } } else if (window.location.href.indexOf("wsj.com") !== -1) { if (location.href.includes('/articles/')) { + document.addEventListener('DOMContentLoaded', () => { + const paywall = document.getElementById('cx-scrim'); + const candybar = document.getElementById('cx-candybar'); + removeDOMElement(paywall, candybar); + }); + /** setTimeout(function () { const close_button = document.querySelector('.close-btn'); if (close_button) close_button.click(); }, 2000); + **/ } } else if (window.location.href.indexOf("washingtonpost.com") !== -1) { if (location.href.includes('/gdpr-consent/')) {