From bdb078c037f1a94ac330406d5dcd9725635a7454 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Fri, 2 Sep 2022 08:26:26 +0200 Subject: [PATCH] Add AutoPlus.fr --- README.md | 1 + changelog.txt | 1 + contentScript.js | 5 +++++ custom/manifest.json | 2 +- custom/sites_custom.json | 10 ++++++++++ manifest.json | 3 ++- sites.js | 5 +++++ sites_updated.json | 6 ++++++ 8 files changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c3ba80..4097aaf 100755 --- a/README.md +++ b/README.md @@ -420,6 +420,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 6f6d847..d9a0334 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Chrome 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 100755 --- 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/manifest.json b/custom/manifest.json index cb65302..41a8349 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -43,5 +43,5 @@ "webRequestBlocking", "" ], - "version": "2.8.2.4" + "version": "2.8.2.5" } 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 af05907..23185e5 100755 --- a/manifest.json +++ b/manifest.json @@ -74,6 +74,7 @@ "*://*.augsburger-allgemeine.de/*", "*://*.automobilwoche.de/*", "*://*.autonews.com/*", + "*://*.autoplus.fr/*", "*://*.azcentral.com/*", "*://*.backpacker.com/*", "*://*.baltimoresun.com/*", @@ -689,5 +690,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 100755 --- 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,