From e51bc6ac103291b9166e78288d46cf2604d726bd Mon Sep 17 00:00:00 2001 From: Adam <36013816+iamadamdev@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:28:01 -0700 Subject: [PATCH] Remove thetimes.co.uk --- README.md | 1 - manifest-ff.json | 1 - src/js/background.js | 1 - src/js/contentScript.js | 7 +------ src/js/sites.js | 1 - 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 31c1bb6..fa562bb 100755 --- a/README.md +++ b/README.md @@ -176,7 +176,6 @@ [The Spectator](https://www.spectator.co.uk)\ [The Sydney Morning Herald](https://www.smh.com.au)\ [The Telegraph](https://www.telegraph.co.uk)\ -[The Times](https://www.thetimes.co.uk)\ [The Toronto Star](https://www.thestar.com)\ [The Wall Street Journal](https://www.wsj.com)\ [The Washington Post](https://www.washingtonpost.com)\ diff --git a/manifest-ff.json b/manifest-ff.json index 224ff73..e3ba163 100755 --- a/manifest-ff.json +++ b/manifest-ff.json @@ -243,7 +243,6 @@ "*://*.thenational.scot/*", "*://*.thesaturdaypaper.com.au/*", "*://*.thestar.com/*", - "*://*.thetimes.co.uk/*", "*://*.thewrap.com/*", "*://*.tijd.be/*", "*://*.towardsdatascience.com/*", diff --git a/src/js/background.js b/src/js/background.js index c6dffa5..c226ed8 100755 --- a/src/js/background.js +++ b/src/js/background.js @@ -170,7 +170,6 @@ const useGoogleBotSites = [ 'theaustralian.com.au', 'themercury.com.au', 'thenational.scot', - 'thetimes.co.uk', 'wsj.com', 'kansascity.com', 'republic.ru', diff --git a/src/js/contentScript.js b/src/js/contentScript.js index a5c1638..6fff457 100755 --- a/src/js/contentScript.js +++ b/src/js/contentScript.js @@ -1,4 +1,4 @@ -if (!matchDomain(['seekingalpha.com', 'sfchronicle.com', 'cen.acs.org', 'thetimes.co.uk', 'elmundo.es'])) { +if (!matchDomain(['seekingalpha.com', 'sfchronicle.com', 'cen.acs.org', 'elmundo.es'])) { window.localStorage.clear(); } @@ -506,11 +506,6 @@ if (matchDomain('elmercurio.com')) { const adblockNotif = document.querySelector('.adblock-notif'); removeDOMElement(adblockNotif); }, 800); // Delay (in milliseconds) -} else if (matchDomain('thetimes.co.uk')) { - const block = document.querySelector('.subscription-block'); - const adBlock = document.getElementById('ad-article-inline'); - const adHeader = document.getElementById('sticky-ad-header'); - removeDOMElement(block, adBlock, adHeader); } else if (matchDomain('themarker.com')) { setTimeout(function () { const paywall = document.querySelector('[data-test="bottomStrip"]'); diff --git a/src/js/sites.js b/src/js/sites.js index c871e39..88bd9a7 100755 --- a/src/js/sites.js +++ b/src/js/sites.js @@ -156,7 +156,6 @@ const defaultSites = { 'The Spectator (U.S.)': 'spectator.us', 'The Sydney Morning Herald': 'smh.com.au', 'The Telegraph': 'telegraph.co.uk', - 'The Times': 'thetimes.co.uk', 'The Toronto Star': 'thestar.com', 'The Wall Street Journal': 'wsj.com', 'The Washington Post': 'washingtonpost.com',