From c431b12fe95bb15748086a5b14f0c0cc1743186f Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 2 Sep 2022 08:27:19 +0200 Subject: [PATCH] Add AutoPlus.fr --- README.md | 1 + changelog.txt | 1 + contentScript.js | 5 +++++ custom/sites_custom.json | 10 ++++++++++ manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 6 ++++++ 7 files changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51f2cf4..1753796 100644 --- a/README.md +++ b/README.md @@ -402,6 +402,7 @@ Grouped in options:\ ##### France/Wallonia [Alternatives Economiques](https://www.alternatives-economiques.fr) - [Atlantico](https://atlantico.fr) - +[Auto Plus](https://www.autoplus.fr) - [Causeur](https://www.causeur.fr) - [Challenges](https://www.challenges.fr) - [Charlie Hebdo](https://charliehebdo.fr) - diff --git a/changelog.txt b/changelog.txt index 8904b19..7917920 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add AutoPlus.fr Add Omaha World-Herald (Lee Enterprises Group) Add Popular Science Remove Dark Reading (no paywall) diff --git a/contentScript.js b/contentScript.js index 6fa3682..a226ec8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1128,6 +1128,11 @@ else if (matchDomain('atlantico.fr')) { paywall.setAttribute('class', 'markup'); } +else if (matchDomain('autoplus.fr')) { + let ads = document.querySelectorAll('div.placeholder-pub_dfp'); + removeDOMElement(...ads); +} + else if (matchDomain('challenges.fr')) { if (window.location.pathname.endsWith('.amp')) { amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"'); diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 534b303..c0d1385 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -46,6 +46,11 @@ "block_regex": "\\.tinypass\\.com\\/", "domain": "eluniversal.com.mx" }, + "Euromoney.com": { + "allow_cookies": 1, + "domain": "euromoney.com", + "useragent": "googlebot" + }, "Fnweb.de": { "allow_cookies": 1, "domain": "fnweb.de", @@ -75,6 +80,11 @@ "allow_cookies": 1, "domain": "internationalepolitik.de" }, + "Internationaltaxreview.com": { + "allow_cookies": 1, + "domain": "internationaltaxreview.com", + "ld_google_webcache": "div.paywall|div.ArticlePage-articleContainer" + }, "Kaleva.fi": { "allow_cookies": 1, "domain": "kaleva.fi", diff --git a/manifest.json b/manifest.json index 4491dda..348e74c 100644 --- a/manifest.json +++ b/manifest.json @@ -86,6 +86,7 @@ "*://*.augsburger-allgemeine.de/*", "*://*.automobilwoche.de/*", "*://*.autonews.com/*", + "*://*.autoplus.fr/*", "*://*.azcentral.com/*", "*://*.backpacker.com/*", "*://*.baltimoresun.com/*", @@ -701,5 +702,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.2.4" + "version": "2.8.2.5" } diff --git a/sites.js b/sites.js index 26acde1..b03119b 100644 --- a/sites.js +++ b/sites.js @@ -163,6 +163,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.automobilwoche\.de\/s3fs-public\/js\/js_.+\.js/ }, + "AutoPlus.fr": { + domain: "autoplus.fr", + allow_cookies: 1, + block_regex: /\.qiota\.com\// + }, "Badische Neueste Nachrichten": { allow_cookies: 1, domain: "bnn.de", diff --git a/sites_updated.json b/sites_updated.json index 4de6a8d..61a1ef2 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -25,6 +25,12 @@ } ] }, + "AutoPlus.fr": { + "domain": "autoplus.fr", + "allow_cookies": 1, + "block_regex": "\\.qiota\\.com\\/", + "new_site": 1 + }, "Chronicle of Philanthropy": { "domain": "philanthropy.com", "allow_cookies": 1,