From c275298c8dff5652ff0d9f88e8b15aa6400f9aef Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 20 May 2020 17:02:34 +0200 Subject: [PATCH] Fix-update LeJdD.fr --- background.js | 2 +- contentScript.js | 10 ++++++++++ lp/manifest.json | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 5cfbc1e..e180bc0 100644 --- a/background.js +++ b/background.js @@ -170,7 +170,7 @@ var blockedRegexes = { 'inquirer.com': /.+\.tinypass\.com\/.+/, 'ladepeche.fr': /.+\.poool\.fr\/.+/, 'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/, -'lejdd.fr': /.+\.swisspay\.ch\/.+/, +'lejdd.fr': /.+\.poool\.fr\/.+/, 'leparisien.fr': /.+\.tinypass\.com\/.+/, 'lesechos.fr': /.+\.tinypass\.com\/.+/, 'livemint.com': /(.+\.livemint\.com\/js\/localWorker\.js|analytics\.htmedia\.in\/analytics-js\/.+\.js)/, diff --git a/contentScript.js b/contentScript.js index a7e0293..8ce7502 100644 --- a/contentScript.js +++ b/contentScript.js @@ -631,6 +631,16 @@ else if (matchDomain('nzz.ch')) { } } +else if (matchDomain('lejdd.fr')) { + let poool_banner = document.querySelector('#poool-container'); + removeDOMElement(poool_banner); + let bottom_hide = document.querySelector('.cnt[data-poool-mode="hide"]'); + if (bottom_hide) { + bottom_hide.removeAttribute('data-poool-mode'); + bottom_hide.removeAttribute('style'); + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/lp/manifest.json b/lp/manifest.json index 481b596..330283e 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -248,7 +248,6 @@ "*://*.qiota.com/*", "*://*.rcsobjects.it/*", "*://*.repstatic.it/*", - "*://*.swisspay.ch/*", "*://*.tribdss.com/*", "*://*.userzoom.com/*", "*://*.viralize.tv/*",