From b40cc11c1e9ffabf7b4a5052d126d762b1958d0d Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 16 Jul 2022 18:46:50 +0200 Subject: [PATCH] Add The Ken (not Southeast Asia) --- README.md | 1 + background.js | 1 + changelog.txt | 1 + contentScript.js | 7 +++++++ custom/sites_custom.json | 5 +++++ manifest.json | 3 ++- sites.js | 7 ++++++- sites_updated.json | 5 +++++ 8 files changed, 28 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a309f145..6546f6e3 100644 --- a/README.md +++ b/README.md @@ -727,6 +727,7 @@ 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 9b9c6734..8f73b828 100644 --- a/background.js +++ b/background.js @@ -33,6 +33,7 @@ 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 a0366c50..e89c9b1f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add The Japan Times +Add The Ken (not Southeast Asia) Fix ilTirreno.it & LaNuovaSardegna.it Fix Koelner Stadt-Anzeiger & Koelnische Rundschau Fix Nrc.nl diff --git a/contentScript.js b/contentScript.js index d47efb6b..a7ff8bb7 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3592,6 +3592,13 @@ 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/custom/sites_custom.json b/custom/sites_custom.json index 4e2116cf..aff0b18a 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -65,6 +65,11 @@ "allow_cookies": 1, "domain": "internationalepolitik.de" }, + "Kaleva.fi": { + "allow_cookies": 1, + "domain": "kaleva.fi", + "useragent": "googlebot" + }, "Lindipendente.online": { "allow_cookies": 1, "domain": "lindipendente.online", diff --git a/manifest.json b/manifest.json index 9d3769a3..6ecedce8 100644 --- a/manifest.json +++ b/manifest.json @@ -548,6 +548,7 @@ "*://*.telerama.fr/*", "*://*.tennessean.com/*", "*://*.the-american-interest.com/*", + "*://*.the-ken.com/*", "*://*.the-tls.co.uk/*", "*://*.theadvocate.com.au/*", "*://*.theadvocate.com/*", @@ -693,5 +694,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.5.4" + "version": "2.7.5.5" } diff --git a/sites.js b/sites.js index 550ce0b4..72a33536 100644 --- a/sites.js +++ b/sites.js @@ -1748,6 +1748,11 @@ 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, @@ -2180,4 +2185,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', 'the-ken.com', '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', '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 778ef229..753fe5d9 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -78,6 +78,11 @@ "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,