From 4e2d824166ff84634be9a72a5620e8ed76fff971 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 19 Jan 2022 20:29:41 +0100 Subject: [PATCH] Fix Clarin --- changelog.txt | 1 + contentScript.js | 7 ++++++- manifest.json | 3 +-- sites.js | 5 ++--- sites_updated.json | 10 +++++----- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/changelog.txt b/changelog.txt index 22510e18..3a478380 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Fix Challenges.fr +Fix Clarin Fix The New Yorker (update) * v2.5.2.0 (2022-01-16) diff --git a/contentScript.js b/contentScript.js index 35661f2c..7ddcc19a 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1800,7 +1800,7 @@ else if (matchDomain('thetimes.co.uk')) { else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) csDone = true; -} else if (window.location.hostname.match(/\.(br|cl|pe)$/) || matchDomain(['elespectador.com', 'elmercurio.com', 'latercera.com', 'lasegunda.com', 'valor.globo.com'])) {//south america +} else if (window.location.hostname.match(/\.(br|cl|pe)$/) || matchDomain(['clarin.com', 'elespectador.com', 'elmercurio.com', 'latercera.com', 'lasegunda.com', 'valor.globo.com'])) {//south america if (matchDomain('abril.com.br')) { if (window.location.pathname.endsWith('/amp/')) { @@ -1810,6 +1810,11 @@ if (matchDomain('abril.com.br')) { } } +else if (matchDomain('clarin.com')) { + let ads = document.querySelectorAll('.ad-slot'); + removeDOMElement(...ads); +} + else if (matchDomain(['elcomercio.pe', 'gestion.pe'])) { let paywall = document.querySelector('.story-content__nota-premium'); if (paywall) { diff --git a/manifest.json b/manifest.json index 0036398a..e4bc0fbc 100644 --- a/manifest.json +++ b/manifest.json @@ -574,7 +574,6 @@ "*://*.qiota.com/*", "*://*.tinypass.com/*", "*://*.tribdss.com/*", - "*://*.adobedtm.com/*", "*://*.amazonaws.com/*", "*://*.apnarm.net.au/*", "*://*.bntech.io/*", @@ -602,5 +601,5 @@ "*://*.wsj.net/*", "*://*.zephr.com/*" ], - "version": "2.5.2.2" + "version": "2.5.2.3" } diff --git a/sites.js b/sites.js index d6cbbfea..246fb1b4 100644 --- a/sites.js +++ b/sites.js @@ -229,8 +229,7 @@ var defaultSites = { "Clarín": { domain: "clarin.com", allow_cookies: 1, - block_regex: /js\.matheranalytics\.com\//, - referer: "facebook" + block_regex: /\.clarin\.com\/commons\/js\/auth0\.js/ }, "Commentary Magazine": { domain: "commentary.org", @@ -1588,7 +1587,7 @@ var defaultSites = { "The Telegraph": { domain: "telegraph.co.uk", allow_cookies: 1, - block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js|\.telegraph\.co\.uk\/.+\/piano.+\.js|assets\.adobedtm\.com\/.+\.js)/ + block_regex: /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/ }, "The Times": { domain: "thetimes.co.uk", diff --git a/sites_updated.json b/sites_updated.json index 7d95d52f..9d6d9031 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,4 +1,9 @@ { + "Clarín": { + "domain": "clarin.com", + "allow_cookies": 1, + "block_regex": "\\.clarin\\.com\\/commons\\/js\\/auth0\\.js" + }, "Mainichi Shimbun": { "domain": "mainichi.jp", "allow_cookies": 1, @@ -14,11 +19,6 @@ "allow_cookies": 1, "block_regex": "\\.businessoffashion\\.com\\/zephr\\/feature-decisions" }, - "The Indian Express": { - "domain": "indianexpress.com", - "allow_cookies": 1, - "block_regex": "(\\/indianexpress\\.com\\/.+\\/indianexpress\\/js\\/(evolok\\/.+|min\\/premiumContent)\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)" - }, "The Jerusalem Post": { "domain": "jpost.com", "allow_cookies": 1,