From 402a7ab4bf9f6552ec83dc853d28672fc0b73f7c Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 8 Feb 2022 08:01:28 +0100 Subject: [PATCH] Add Groupe Sud Ouest (France) --- README.md | 7 +++++-- background.js | 2 +- changelog.txt | 1 + contentScript.js | 2 +- manifest.json | 4 +++- sites.js | 14 ++++++++++---- 6 files changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3587d3b..4aab2b5 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,6 @@ Grouped in options:\ [Paris Match](https://www.parismatch.com) - [Science & Vie](https://www.science-et-vie.com) - [Sciences et Avenir](https://www.sciencesetavenir.fr) - -[Sud Ouest](https://www.sudouest.fr) - [Télérama](https://www.telerama.fr) - [Valeurs Actuelles](https://www.valeursactuelles.com) @@ -393,7 +392,11 @@ Grouped in options:\ [Nord Éclair](https://www.nordeclair.fr) - [Nord Littoral](https://www.nordlittoral.fr) - [Paris Normandie](https://www.paris-normandie.fr) - -[SudInfo](https://www.sudinfo.be) +[SudInfo](https://www.sudinfo.be)\ +*Groupe Sud Ouest* sites like\ +[Charente libre](https://www.charentelibre.fr) - +[La République des Pyrénées](https://www.larepubliquedespyrenees.fr) - +[Sud Ouest](https://www.sudouest.fr) ##### Germany/Austria [Allgäuer Zeitung](https://www.allgaeuer-zeitung.de) - diff --git a/background.js b/background.js index ea09d40..ae0a2c4 100644 --- a/background.js +++ b/background.js @@ -1015,7 +1015,7 @@ if (matchUrlDomain(change_headers, details.url) && !['font', 'image', 'styleshee } if ((!['font', 'stylesheet'].includes(details.type) || matchUrlDomain(cs_limit_except, currentTabUrl)) && !csDone) { let lib_file = 'lib/empty.js'; - if (matchUrlDomain(['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'sudouest.fr', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains), currentTabUrl)) + if (matchUrlDomain(['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains), currentTabUrl)) lib_file = 'lib/purify.min.js'; var bg2csData = { optin_setcookie: optin_setcookie, diff --git a/changelog.txt b/changelog.txt index 7a15db0..ed23ea5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Groupe Sud Ouest (France) Update block general paywall script (limit NewsMemory) * v2.5.5.0 (2022-02-06) diff --git a/contentScript.js b/contentScript.js index 7733e0b..5523009 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1283,7 +1283,7 @@ else if (matchDomain('science-et-vie.com')) { } } -else if (matchDomain('sudouest.fr')) { +else if (matchDomain(['sudouest.fr', 'charentelibre.fr', 'larepubliquedespyrenees.fr'])) { let url = window.location.href; let paywall = document.querySelector('.article-premium-footer'); if (paywall) { diff --git a/manifest.json b/manifest.json index 25d3284..8ca676b 100644 --- a/manifest.json +++ b/manifest.json @@ -111,6 +111,7 @@ "*://*.centralwesterndaily.com.au/*", "*://*.centrepresseaveyron.fr/*", "*://*.challenges.fr/*", + "*://*.charentelibre.fr/*", "*://*.charliehebdo.fr/*", "*://*.charlotteobserver.com/*", "*://*.chicagobusiness.com/*", @@ -293,6 +294,7 @@ "*://*.lanuovasardegna.it/*", "*://*.laprovincia.es/*", "*://*.lardennais.fr/*", + "*://*.larepubliquedespyrenees.fr/*", "*://*.larioja.com/*", "*://*.lasegunda.com/*", "*://*.lasprovincias.es/*", @@ -612,5 +614,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.5.5.1" + "version": "2.5.5.2" } diff --git a/sites.js b/sites.js index 0fc46b7..f2755f5 100644 --- a/sites.js +++ b/sites.js @@ -606,6 +606,15 @@ var defaultSites = { allow_cookies: 1, useragent: "googlebot" }, + "Groupe Sud Ouest": { + domain: "###_fr_groupe_sud_ouest", + group: [ + "sudouest.fr", + "charentelibre.fr", + "larepubliquedespyrenees.fr" + ], + allow_cookies: 1 + }, "Grupo Abril": { domain: "abril.com.br", allow_cookies: 1, @@ -1374,10 +1383,6 @@ var defaultSites = { domain: "study.com", allow_cookies: 1 }, - "Sud Ouest": { - domain: "sudouest.fr", - allow_cookies: 1 - }, "Tampa Bay Times": { domain: "tampabay.com", allow_cookies: 1, @@ -1926,6 +1931,7 @@ expandSiteRules(defaultSites); // grouped domains (background) var au_news_corp_domains = grouped_sites['###_au_news_corp']; +var fr_groupe_sud_ouest_domains = grouped_sites['###_fr_groupe_sud_ouest']; var it_repubblica_domains = defaultSites['###_gr_it_repubblica_domains']['group_rule_domains']; var nl_mediahuis_region_domains = grouped_sites['###_nl_mediahuis_region']; var no_nhst_media_domains = grouped_sites['###_no_nhst_media'];