From 5163233012a710f2aa093365b2eae102e0420c6a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 9 Apr 2022 12:27:52 +0200 Subject: [PATCH] Remove NK News (fix obsolete) --- README.md | 1 - background.js | 1 - changelog.txt | 1 + contentScript.js | 2 +- manifest.json | 1 - sites.js | 5 ----- 6 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2bd69df..78dbbde 100644 --- a/README.md +++ b/README.md @@ -671,7 +671,6 @@ Grouped in options:\ [Harvard Business Review China](https://www.hbrchina.org) - [Mainichi Shimbun](https://mainichi.jp) - [Nikkei Asian Review](https://asia.nikkei.com) - -[NK News](https://www.nknews.org)* - [South China Morning Post](https://www.scmp.com) - [Southern Weekly](https://www.infzm.com) - [Tech in Asia](https://www.techinasia.com) - diff --git a/background.js b/background.js index e194c24..a42c566 100644 --- a/background.js +++ b/background.js @@ -26,7 +26,6 @@ var restrictions = { 'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/, 'science.org': /^((?!\.science\.org\/doi\/).)*$/, 'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/, - 'nknews.org': /^((?!nknews\.org\/pro\/).)*$/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'repubblica.it': /^((?!\/video\.repubblica\.it\/).)*$/, 'seekingalpha.com': /\/seekingalpha\.com($|\/($|(amp\/)?(article|news)\/|samw\/))/, diff --git a/changelog.txt b/changelog.txt index b86cdcb..80921b1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Post-release Add El Periodico Extremadura Add Nuernberger Nachrichten Remove Algemeen Dagblad Regional (fix obsolete) +Remove NK News (fix obsolete) Fix The Globe and Mail (sections) Fix The Hill Times (text) Fix (custom) group-sites (limit identify on image) diff --git a/contentScript.js b/contentScript.js index bf5e74e..c0a3618 100644 --- a/contentScript.js +++ b/contentScript.js @@ -34,7 +34,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "cleaneatingmag. var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; // clean local storage of sites (with an exemption for hold-list) -var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nknews.org', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, no_nhst_media_domains, usa_hearst_comm_domains); +var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'kurier.at', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'muensterschezeitung.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'westfalen-blatt.de', 'wn.de', 'wsj.com'].concat(de_funke_media_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, no_nhst_media_domains, usa_hearst_comm_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); } diff --git a/manifest.json b/manifest.json index 018cb5d..6f67478 100644 --- a/manifest.json +++ b/manifest.json @@ -416,7 +416,6 @@ "*://*.nicematin.com/*", "*://*.nikkei.com/*", "*://*.nj.com/*", - "*://*.nknews.org/*", "*://*.nn.de/*", "*://*.nola.com/*", "*://*.noordhollandsdagblad.nl/*", diff --git a/sites.js b/sites.js index 4b402c4..454375a 100644 --- a/sites.js +++ b/sites.js @@ -1235,11 +1235,6 @@ var defaultSites = { domain: "asia.nikkei.com", remove_cookies_select_drop: ["xbc"] }, - "NK News (free articles only)": { - domain: "nknews.org", - block_regex: /\.nknews\.org\/wp-content\/themes\/nknews\/js\/bootstrap\.min\.js/, - useragent: "googlebot" - }, "Nordwest Zeitung": { domain: "nwzonline.de", allow_cookies: 1,