Add Cambio Colombia

This commit is contained in:
magnolia1234 2023-09-13 07:54:14 +02:00
parent 592f4da7ef
commit d871342357
8 changed files with 36 additions and 9 deletions

View file

@ -936,6 +936,7 @@ Grouped in options:\
[La Segunda](https://digital.lasegunda.com) -
[La Tercera](https://www.latercera.com)
##### Colombia
[Cambio Colombia](https://cambiocolombia.com) -
[El Espectador](https://www.elespectador.com) -
[El Tiempo](https://www.eltiempo.com)
##### Mexico

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Add Cambio Colombia
Fix South China Morning Post (mobile & amp)
* v3.3.3.0 (2023-09-10)

View file

@ -3134,7 +3134,7 @@ else if (matchDomain(uk_nat_world_domains) || document.querySelector('footer > d
else
csDone = true;
} else if (window.location.hostname.match(/\.(ar|br|cl|pe|uy)$/) || matchDomain(['clarin.com', 'elespectador.com', 'elmercurio.com', 'eltiempo.com', 'eltribuno.com', 'globo.com', 'lasegunda.com', 'latercera.com', 'revistaoeste.com'])) {//south america
} else if (window.location.hostname.match(/\.(ar|br|cl|pe|uy)$/) || matchDomain(['cambiocolombia.com', 'clarin.com', 'elespectador.com', 'elmercurio.com', 'eltiempo.com', 'eltribuno.com', 'globo.com', 'lasegunda.com', 'latercera.com', 'revistaoeste.com'])) {//south america
if (matchDomain('abril.com.br')) {
if (window.location.pathname.endsWith('/amp/')) {
@ -3156,6 +3156,18 @@ else if (matchDomain(ar_grupo_clarin_domains)) {
hideDOMElement(ad.parentNode);
}
else if (matchDomain('cambiocolombia.com')) {
if (!window.location.pathname.startsWith('/amp/')) {
let paywall = document.querySelector('div#require-access');
if (paywall) {
removeDOMElement(paywall);
window.location.href = '/amp' + window.location.pathname;
}
} else {
amp_unhide_subscr_section('amp-ad, amp-embed');
}
}
else if (matchDomain('crusoe.com.br')) {
let ads = document.querySelectorAll('#gpt-leaderboard, .ads_desktop, .catchment-box');
hideDOMElement(...ads);

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.3.1"
"version": "3.3.3.2"
}

View file

@ -73,12 +73,6 @@
"domain": "businessnews.com.au",
"useragent": "googlebot"
},
"Cambiocolombia.com": {
"allow_cookies": 1,
"amp_redirect": "div#require-access",
"amp_unhide": 1,
"domain": "cambiocolombia.com"
},
"Capital.bg": {
"allow_cookies": 1,
"domain": "capital.bg",
@ -532,6 +526,12 @@
"domain": "taxscan.in",
"ld_json": "div.pmpro_content_message|div.singlepost_container>p"
},
"Tetu.com": {
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com",
"domain": "tetu.com",
"ld_json_url": "div.qiota-for-free-article|div.article-content"
},
"The-fence.com": {
"allow_cookies": 1,
"block_regex": "\\.hadrianpaywall\\.com",

View file

@ -129,6 +129,7 @@
"*://*.businesspost.ie/*",
"*://*.cairnspost.com.au/*",
"*://*.calgaryherald.com/*",
"*://*.cambiocolombia.com/*",
"*://*.canberratimes.com.au/*",
"*://*.capitalgazette.com/*",
"*://*.causeur.fr/*",
@ -792,5 +793,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.3.1"
"version": "3.3.3.2"
}

View file

@ -318,6 +318,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\/olytics\.omeda\.com\//
},
"Cambio Colombia": {
domain: "cambiocolombia.com",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
},
"Causeur": {
domain: "causeur.fr",
allow_cookies: 1,

View file

@ -31,6 +31,13 @@
"block_regex": "(\\.tinypass\\.com\\/api\\/tinypass\\.min\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)",
"upd_version": "3.3.1.7"
},
"Cambio Colombia": {
"domain": "cambiocolombia.com",
"allow_cookies": 1,
"amp_redirect": "div#require-access",
"amp_unhide": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js"
},
"De Tijd": {
"domain": "tijd.be",
"referer": "google",