From 9485bbec2dc240ccbb85334205848339e7015ac9 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 27 May 2020 22:30:22 +0200 Subject: [PATCH] Fix-update Medium (banner) --- contentScript.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contentScript.js b/contentScript.js index 6d17549..7b5c18a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -201,10 +201,9 @@ else if (matchDomain("bloombergquint.com")) { removeDOMElement(articlesLeftModal, paywall); } -else if (matchDomain("medium.com")) { - const bottomMessageText = 'Get one more story in your member preview when you sign up. It’s free.'; - const DOMElementsToTextDiv = pageContains('div', bottomMessageText); - if (DOMElementsToTextDiv[2]) removeDOMElement(DOMElementsToTextDiv[2]); +else if (matchDomain(["medium.com", "towardsdatascience.com"])) { + let meter = document.querySelector('#lo-highlight-meter-1-highlight-box'); + removeDOMElement(meter); } else if (matchDomain("ledevoir.com")) {