From 4b3600faaf6a334a604dc0d6bed0f30e3d11a0b8 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 6 Aug 2022 09:37:15 +0200 Subject: [PATCH] Add Substack --- README.md | 1 + changelog.txt | 1 + contentScript.js | 2 +- manifest.json | 1 + sites.js | 4 ++++ sites_updated.json | 4 ++++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0164bf3..baf284c 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,7 @@ Grouped in options:\ [Slate](https://slate.com) - [SofRep](https://sofrep.com) - [Sports Illustrated](https://www.si.com) - +[Substack](https://substack.com) - [The Art Newspaper](https://www.theartnewspaper.com) - [The Athletic](https://theathletic.com) - [The Banker](https://www.thebanker.com) - diff --git a/changelog.txt b/changelog.txt index 9d57f66..893b23f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Limburger.nl Add Standaard.be +Add Substack Add SuomenSotilas.fi Add Welt.de Add Wiwo.de diff --git a/contentScript.js b/contentScript.js index 2833590..5f87899 100644 --- a/contentScript.js +++ b/contentScript.js @@ -39,7 +39,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition 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', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_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, ca_gcm_domains, nl_dpg_media_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', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_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, ca_gcm_domains, nl_dpg_media_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 90e7b94..e2ebcbb 100644 --- a/manifest.json +++ b/manifest.json @@ -539,6 +539,7 @@ "*://*.stocknews.com/*", "*://*.stratfor.com/*", "*://*.studocu.com/*", + "*://*.substack.com/*", "*://*.sudinfo.be/*", "*://*.sudouest.fr/*", "*://*.sun-sentinel.com/*", diff --git a/sites.js b/sites.js index 7dd7fc8..3163909 100644 --- a/sites.js +++ b/sites.js @@ -1582,6 +1582,10 @@ var defaultSites = { domain: "studocu.com", allow_cookies: 1 }, + "Substack": { + domain: "substack.com", + useragent: "googlebot" + }, "Suomen Sotilas": { domain: "suomensotilas.fi", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index 2c07158..dafc1bf 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -25,6 +25,10 @@ "remove_cookies": 1, "referer": "facebook" }, + "Substack": { + "domain": "substack.com", + "useragent": "googlebot" + }, "Suomen Sotilas": { "domain": "suomensotilas.fi", "allow_cookies": 1,