From 17b8d485d100006dadc07573db96280dd452d4e7 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 16 Oct 2020 13:44:33 +0200 Subject: [PATCH] Fix-update Toronto Star (external cookie-script) --- background.js | 1 + changelog.txt | 1 + contentScript.js | 3 +++ manifest.json | 3 ++- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index be3b062..93b7cb6 100644 --- a/background.js +++ b/background.js @@ -234,6 +234,7 @@ var blockedRegexes = { 'thedailybeast.com': /.+\.tinypass\.com\/.+/, 'thehindu.com': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/, 'thenation.com': /.+\.tinypass\.com\/.+/, +'thestar.com': /emeter-nam\.mppglobal\.com\/probes\/JSONP\?/, 'valeursactuelles.com': /.+\.qiota\.com\/.+/, 'variety.com': /cdn\.cxense\.com/, 'washingtonpost.com': /.+\.washingtonpost\.com\/.+\/pwapi-proxy\.min\.js/, diff --git a/changelog.txt b/changelog.txt index 14008ed..f4b9532 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add The West Australian (+ regional) +Fix-update Toronto Star (external cookie-script) Update opt-in tab (default settings) * v1.9.0.2 (2020-10-14) diff --git a/contentScript.js b/contentScript.js index 666161c..5365d0e 100644 --- a/contentScript.js +++ b/contentScript.js @@ -525,6 +525,9 @@ else if (matchDomain("techinasia.com")) { } else if (matchDomain("thestar.com")) { + let meter_banner = document.querySelector('.c-article-meter-banner'); + let rightrail = document.querySelector('.c-article-body__rightrail'); + removeDOMElement(meter_banner, rightrail); let paywall = document.querySelector('.basic-paywall-new'); if (paywall) { removeDOMElement(paywall); diff --git a/manifest.json b/manifest.json index b012cc8..a7e9520 100644 --- a/manifest.json +++ b/manifest.json @@ -305,6 +305,7 @@ "*://*.jsdelivr.net/*", "*://*.lightboxcdn.com/*", "*://*.lp4.io/*", + "*://*.mppglobal.com/*", "*://*.nyt.com/*", "*://*.pasedigital.cl/*", "*://*.pelcro.com/*", @@ -324,5 +325,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.0.3" + "version": "1.9.0.4" } \ No newline at end of file