From 2d77d402d97d4054999d053bf940ac650f5e77ff Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 19 Mar 2022 17:38:47 +0100 Subject: [PATCH] Add Franc-Tireur.fr --- README.md | 1 + changelog.txt | 1 + contentScript.js | 5 +++++ manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 5 +++++ 6 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index acf5b56..b50d1a5 100644 --- a/README.md +++ b/README.md @@ -359,6 +359,7 @@ Grouped in options:\ [Connaissance des Arts](https://www.connaissancedesarts.com) - [Elle](https://www.elle.fr) - [Esprit](https://esprit.presse.fr) - +[Franc-Tireur](https://www.franc-tireur.fr) - [L'Équipe](https://www.lequipe.fr) - [L'Express](https://www.lexpress.fr) - [L'Obs](https://www.nouvelobs.com) - diff --git a/changelog.txt b/changelog.txt index 30f85b0..77924e0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Franc-Tireur.fr Add Mid-Day (India) Add Popular Mechanics Add Winnipeg Free Press (Canada) diff --git a/contentScript.js b/contentScript.js index 84f4872..f40dec8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1229,6 +1229,11 @@ else if (domain = matchDomain(fr_groupe_nice_matin_domains)) { removeDOMElement(...ads); } +else if (matchDomain('franc-tireur.fr')) { + let paywall = document.querySelector('.paywall'); + removeDOMElement(paywall); +} + else if (matchDomain('journaldunet.com')) { let reg_wall = document.querySelector('.reg_wall'); removeDOMElement(reg_wall); diff --git a/manifest.json b/manifest.json index b2027da..989c855 100644 --- a/manifest.json +++ b/manifest.json @@ -216,6 +216,7 @@ "*://*.foreignaffairs.com/*", "*://*.foreignpolicy.com/*", "*://*.fortune.com/*", + "*://*.franc-tireur.fr/*", "*://*.freep.com/*", "*://*.freiepresse.de/*", "*://*.fresnobee.com/*", @@ -642,5 +643,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.6.0.5" + "version": "2.6.0.6" } diff --git a/sites.js b/sites.js index 134d11c..f9e3154 100644 --- a/sites.js +++ b/sites.js @@ -491,6 +491,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/ }, + "Franc-Tireur": { + domain: "franc-tireur.fr", + allow_cookies: 1, + block_regex: /\.poool\.fr\// + }, "Frankfurter Allgemeine Zeitung": { domain: "faz.net", allow_cookies: 1 diff --git a/sites_updated.json b/sites_updated.json index 9c22220..4e0bddb 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -40,6 +40,11 @@ "block_regex": "(\\.folha\\.uol\\.com\\.br\\/paywall\\/js\\/|paywall\\.folha\\.uol\\.com\\.br\\/|js\\.matheranalytics\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-((sticky-)?ad|subscriptions)-.+\\.js)", "useragent": "googlebot" }, + "Franc-Tireur": { + "domain": "franc-tireur.fr", + "allow_cookies": 1, + "block_regex": "\\.poool\\.fr\\/" + }, "India Today": { "domain": "indiatoday.in", "allow_cookies": 1,