From d2ba6b86e835fc9475c6d8909d5b3067125e355e Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 22 Feb 2020 13:10:08 +0100 Subject: [PATCH] Fix The New Yorker paywall-banner --- contentScript.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contentScript.js b/contentScript.js index 7bb60bc..8d97832 100755 --- a/contentScript.js +++ b/contentScript.js @@ -413,6 +413,11 @@ if (window.location.href.indexOf("lc.nl") !== -1 || window.location.href.indexOf }); } +if (window.location.href.indexOf("newyorker.com") !== -1) { + const paywall_bar = document.querySelector('.paywall-bar'); + removeDOMElement(paywall_bar); +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) {