From 33919157458ea551e505af5d4406dcb5af733e32 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 7 Jan 2020 22:26:47 +0100 Subject: [PATCH] Add Lecho.be & fix LesEchos.fr (block TinyPass) --- README.md | 1 + background.js | 6 +++++- manifest.json | 3 ++- options.js | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f9745cd..16218f2 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ [Harvard Business Review](https://www.hbr.org)\ [Inc.com](https://www.inc.com)\ [Investors Chronicle](https://www.investorschronicle.co.uk)\ +[L'Echo](https://www.lecho.be)\ [La Repubblica](https://www.repubblica.it)\ [Le Monde](https://www.lemonde.fr)\ [Le Parisien](http://www.leparisien.fr)\ diff --git a/background.js b/background.js index 664aadc..f1e2924 100644 --- a/background.js +++ b/background.js @@ -33,6 +33,7 @@ var defaultSites = { 'Harvard Business Review': 'hbr.org', 'Inc.com': 'inc.com', 'Investors Chronicle': 'investorschronicle.co.uk', + 'L\'Echo': 'lecho.be', 'La Repubblica': 'repubblica.it', 'Le Monde': 'lemonde.fr', 'Le Parisien': 'leparisien.fr', @@ -130,6 +131,7 @@ const allow_cookies = [ 'hacked.com', 'harpers.org', 'hbr.org', +'lecho.be', 'lemonde.fr', 'lesechos.fr', 'letemps.ch', @@ -183,6 +185,7 @@ const remove_cookies = [ 'hacked.com', 'harpers.org', 'hbr.org', +'lecho.be', 'lesechos.fr', 'letemps.ch', 'medium.com', @@ -263,7 +266,8 @@ const blockedRegexes = { 'newcastleherald.com.au': /.+cdn-au\.piano\.io\/api\/tinypass.+\.js/, 'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/, 'theglobeandmail.com': /theglobeandmail\.com\/pb\/resources\/scripts\/build\/chunk-bootstraps\/.+\.js/, -'leparisien.fr': /.+\.tinypass\.com\/.+/ +'leparisien.fr': /.+\.tinypass\.com\/.+/, +'lesechos.fr': /.+\.tinypass\.com\/.+/ }; const userAgentDesktop = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" diff --git a/manifest.json b/manifest.json index f8e8943..b715913 100644 --- a/manifest.json +++ b/manifest.json @@ -173,7 +173,8 @@ "*://*.lesechos.fr/*", "*://*.theathletic.com/*", "*://*.techinasia.com/*", - "*://*.scribd.com/*" + "*://*.scribd.com/*", + "*://*.lecho.be/*" ], "version": "1.6.3" } diff --git a/options.js b/options.js index 71f3411..1f7c7fe 100644 --- a/options.js +++ b/options.js @@ -31,11 +31,12 @@ var defaultSites = { 'Harvard Business Review': 'hbr.org', 'Inc.com': 'inc.com', 'Investors Chronicle': 'investorschronicle.co.uk', + 'L\'Echo': 'lecho.be', 'La Repubblica': 'repubblica.it', 'Le Monde': 'lemonde.fr', 'Le Parisien': 'leparisien.fr', 'Le Temps': 'letemps.ch', - 'Les Echos': 'lesechos.fr', + 'Les Echos (free articles only)': 'lesechos.fr', 'London Review of Books': 'lrb.co.uk', 'Los Angeles Times': 'latimes.com', 'Medium': 'medium.com',