From 3a05c8c87afb16fdeacd202a9ffa03cd1116d83b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 3 Feb 2020 17:48:55 +0100 Subject: [PATCH] Fix TheAdvocate.com.au --- background.js | 1 + contentScript.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 2fbcdc9..e0c6234 100644 --- a/background.js +++ b/background.js @@ -144,6 +144,7 @@ var blockedRegexes = { 'sloanreview.mit.edu': /.+\.tinypass\.com\/.+/, 'spectator.co.uk': /.+\.tinypass\.com\/.+/, 'spectator.com.au': /.+\.tinypass\.com\/.+/, +'theadvocate.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, 'thecourier.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, 'thedailybeast.com': /.+\.tinypass\.com\/.+/, 'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/, diff --git a/contentScript.js b/contentScript.js index acdc71b..fa7dfde 100644 --- a/contentScript.js +++ b/contentScript.js @@ -349,7 +349,8 @@ if (window.location.href.indexOf("theglobeandmail.com") !== -1) { if (window.location.href.indexOf("newcastleherald.com.au") !== -1 || window.location.href.indexOf("examiner.com.au") !== -1 - || window.location.href.indexOf("thecourier.com.au") !== -1) { + || window.location.href.indexOf("thecourier.com.au") !== -1 + || window.location.href.indexOf("theadvocate.com.au") !== -1) { const subscribe_truncate = document.querySelector('.subscribe-truncate'); if (subscribe_truncate) subscribe_truncate.classList.remove('subscribe-truncate');