From 12baa0ecaf56af010ca490b426817c4c2d6d1aab Mon Sep 17 00:00:00 2001 From: Egill Hreinson Date: Fri, 1 Nov 2019 18:33:26 +0100 Subject: [PATCH 1/2] remove cookie banner on Financial Times --- contentScript.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contentScript.js b/contentScript.js index 45c2dc9..6354006 100644 --- a/contentScript.js +++ b/contentScript.js @@ -155,6 +155,10 @@ if (window.location.href.indexOf('lemonde.fr') !== -1) { }); } +if (window.location.href.includes('ft.com')) { + const cookie_banner = document.querySelector('.n-messaging-banner__outer'); + removeDOMElement(cookie_banner); +} function removeDOMElement(...elements) { for (let element of elements) { From 21aeebf6b5ac9ca894f763eace941fedbca7e309 Mon Sep 17 00:00:00 2001 From: Egill Hreinson Date: Tue, 12 Nov 2019 11:36:29 +0100 Subject: [PATCH 2/2] resolved conflicts: fix typo --- contentScript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/contentScript.js b/contentScript.js index ac15b52..b6383a4 100644 --- a/contentScript.js +++ b/contentScript.js @@ -183,6 +183,7 @@ if (window.location.href.indexOf("ledevoir.com") !== -1) { if (window.location.href.includes('ft.com')) { const cookie_banner = document.querySelector('.n-messaging-banner__outer'); removeDOMElement(cookie_banner); +} if (window.location.href.indexOf("thehindu.com") !== -1) {