Fix Clarin

This commit is contained in:
magnolia1234 2022-01-19 20:29:41 +01:00
parent e14fd0863d
commit 4e2d824166
5 changed files with 15 additions and 11 deletions

View file

@ -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)

View file

@ -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) {

View file

@ -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"
}

View file

@ -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",

View file

@ -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,