From 23cd31a60b2b1cfc66580e5dd010f924f7331465 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 2 Nov 2020 18:17:11 +0100 Subject: [PATCH] Fix-update Telegraph.co.uk (overlay) --- background.js | 5 +++-- changelog.txt | 1 + manifest.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 66979fb..4c3cb07 100644 --- a/background.js +++ b/background.js @@ -106,6 +106,7 @@ var remove_cookies = [ const remove_cookies_select_hold = { 'barrons.com': ['wsjregion'], 'newstatesman.com': ['STYXKEY_nsversion'], + 'telegraph.co.uk': ['consentUUID'], 'qz.com': ['gdpr'], 'wsj.com': ['wsjregion'] } @@ -247,7 +248,7 @@ var blockedRegexes = { 'spectator.co.uk': /.+\.tinypass\.com\/.+/, 'spectator.com.au': /.+\.tinypass\.com\/.+/, 'technologyreview.com': /.+\.blueconic\.net\/.+/, - 'telegraph.co.uk': /.+\.tinypass\.com\/.+/, + 'telegraph.co.uk': /(.+\.tinypass\.com\/.+|.+\.telegraph\.co\.uk\/.+\/piano.+\.js|assets\.adobedtm\.com\/.+\.js)/, 'theage.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/, 'thedailybeast.com': /.+\.tinypass\.com\/.+/, 'thehindu.com': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/, @@ -714,7 +715,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { if (tabId !== -1) { ext_api.tabs.get(tabId, function (currentTab) { - if (isSiteEnabled(currentTab) || medium_custom_domain || au_swm_site || sz_amp_site) { + if ((currentTab && isSiteEnabled(currentTab)) || medium_custom_domain || au_swm_site || sz_amp_site) { ext_api.tabs.executeScript(tabId, { file: 'contentScript.js', runAt: 'document_start' diff --git a/changelog.txt b/changelog.txt index afab4bd..5df6c7c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix-update Telegraph.co.uk (overlay) Fix updateBadge (grouped sites) * v1.9.3.0 (2020-11-01) diff --git a/manifest.json b/manifest.json index eaf4094..9117496 100644 --- a/manifest.json +++ b/manifest.json @@ -303,6 +303,7 @@ "*://*.qiota.com/*", "*://*.tinypass.com/*", "*://*.tribdss.com/*", + "*://*.adobedtm.com/*", "*://*.ampproject.org/*", "*://*.bwbx.io/*", "*://*.cedsdigital.it/*", @@ -338,5 +339,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.3.0" + "version": "1.9.3.1" } \ No newline at end of file