From 39cfab40dae66f756b6993f2a3984eed996ed7ca Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 19 Jul 2022 08:55:23 +0200 Subject: [PATCH] Remove The Ken (fix not working) --- README.md | 1 - background.js | 1 - changelog.txt | 1 + contentScript.js | 7 ------- manifest.json | 1 - sites.js | 7 +------ sites_updated.json | 5 ----- 7 files changed, 2 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 704733f..f33d2f6 100644 --- a/README.md +++ b/README.md @@ -727,7 +727,6 @@ Grouped in options:\ [The Hindu](https://www.thehindu.com) - [The Hindu BusinessLine](https://www.thehindubusinessline.com) - [The Indian Express](https://indianexpress.com) - -[The Ken](https://the-ken.com) - [Times of India](https://timesofindia.indiatimes.com) #### Israel diff --git a/background.js b/background.js index c0a48d3..f39ea27 100644 --- a/background.js +++ b/background.js @@ -33,7 +33,6 @@ var restrictions = { 'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/, 'statista.com': /^((?!\.statista\.com\/(outlook|study)\/).)*$/, 'techinasia.com': /\.techinasia\.com\/.+/, - 'the-ken.com': /^((?!\/the-ken\.com\/sea\/).)*$/, 'timeshighereducation.com': /\.timeshighereducation\.com\/((features|news|people)\/|.+((\w)+(\-)+){3,}.+|sites\/default\/files\/)/ } diff --git a/changelog.txt b/changelog.txt index 2053d9b..bdd83ae 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Remove The Ken (fix not working) Fix Scientific American (magazine) * v2.7.6.0 (2022-07-17) diff --git a/contentScript.js b/contentScript.js index 0ffb55c..589dc8f 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3606,13 +3606,6 @@ else if (matchDomain('the-american-interest.com')) { removeDOMElement(counter); } -else if (matchDomain('the-ken.com')) { - if (window.location.pathname.startsWith('/story/')) { - let paywall = document.querySelector('section#paywall'); - removeDOMElement(paywall); - } -} - else if (matchDomain('theathletic.com')) { if (!window.location.search.match(/(\?|&)amp/)) { let paywall = document.querySelectorAll('div#paywall-container, div[subscriptions-action="subscribe"], a.headline-paywall, div#slideup-paywall'); diff --git a/manifest.json b/manifest.json index 3f68a6f..ecf4968 100644 --- a/manifest.json +++ b/manifest.json @@ -548,7 +548,6 @@ "*://*.telerama.fr/*", "*://*.tennessean.com/*", "*://*.the-american-interest.com/*", - "*://*.the-ken.com/*", "*://*.the-tls.co.uk/*", "*://*.theadvocate.com.au/*", "*://*.theadvocate.com/*", diff --git a/sites.js b/sites.js index 5a84d3f..13f581a 100644 --- a/sites.js +++ b/sites.js @@ -1747,11 +1747,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.jpost\.com\/js\/js_article\.min\.js/ }, - "The Ken (not Southeast Asia)": { - domain: "the-ken.com", - allow_cookies: 1, - block_regex: /\/the-ken\.com\/wp-content\/.+\/js\/bootstrap\.min\.js/ - }, "The Lawyer's Daily": { domain: "thelawyersdaily.ca", allow_cookies: 1, @@ -2184,4 +2179,4 @@ var no_nhst_media_domains = grouped_sites['###_no_nhst_media']; // sites with no fix (background) var nl_ad_region_domains = ['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.de', 'publico.pt', 'republic.ru', 'rp-online.de', 'standaard.be', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'tagesspiegel.de', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'wiwo.de', 'ynet.co.il'].concat(nl_ad_region_domains); +var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.de', 'publico.pt', 'republic.ru', 'rp-online.de', 'standaard.be', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'tagesspiegel.de', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'wiwo.de', 'ynet.co.il'].concat(nl_ad_region_domains); diff --git a/sites_updated.json b/sites_updated.json index f1b8aee..f2a807c 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -83,11 +83,6 @@ "block_regex": "cdn\\.cxense\\.com\\/", "remove_cookies_select_drop": ["xbc"] }, - "The Ken (not Southeast Asia)": { - "domain": "the-ken.com", - "allow_cookies": 1, - "block_regex": "\\/the-ken\\.com\\/wp-content\\/.+\\/js\\/bootstrap\\.min\\.js" - }, "The Wall Street Journal": { "domain": "wsj.com", "allow_cookies": 1,