Add Estado de Minas (Brazil)

This commit is contained in:
magnolia1234 2022-06-01 17:39:27 +02:00
parent 4e94e7ebdd
commit 6dc1b25de1
6 changed files with 40 additions and 1 deletions

View file

@ -733,6 +733,7 @@ Grouped in options:\
[Clarín](https://www.clarin.com) -
[La Nación](https://www.lanacion.com.ar)
##### Brazil
[Estado de Minas](https://www.em.com.br) -
[Exame](https://exame.com) -
[Folha de S. Paulo](https://www.folha.uol.com.br) -
[Grupo Abril](https://grupoabril.com.br) -

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Estado de Minas (Brazil)
Fix LesEchos.fr (refresh)
Fix Quartz (newsletter)

View file

@ -2310,6 +2310,24 @@ else if (matchDomain('elmercurio.com')) {
}, 3000);
}
else if (matchDomain('em.com.br')) {
if (!window.location.pathname.endsWith('/amp.html')) {
let paywall = document.querySelector('.news-blocked-content');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
}
let ads = document.querySelectorAll('.ads, .containerads');
removeDOMElement(...ads);
} else {
amp_unhide_subscr_section('amp-ad, amp-embed, amp-fx-flying-carpet');
let compress_text = document.querySelector('div.compress-text');
if (compress_text)
compress_text.classList.remove('compress-text');
}
}
else if (matchDomain('estadao.com.br')) {
if (window.location.pathname.endsWith('.amp')) {
amp_unhide_access_hide('="granted"', '="NOT granted"', 'amp-ad, amp-embed, amp-fx-flying-carpet');

View file

@ -200,6 +200,7 @@
"*://*.elpais.com/*",
"*://*.elperiodico.com/*",
"*://*.eltiempo.com/*",
"*://*.em.com.br/*",
"*://*.enotes.com/*",
"*://*.entrepreneur.com/*",
"*://*.epe.es/*",
@ -682,5 +683,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.7.1.1"
"version": "2.7.1.2"
}

View file

@ -435,6 +435,11 @@ var defaultSites = {
allow_cookies: 1,
random_ip: "all"
},
"Estado de Minas": {
domain: "em.com.br",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
},
"EUobserver": {
domain: "euobserver.com",
allow_cookies: 1,

View file

@ -15,6 +15,19 @@
"amp_redirect": "div[class^=\"MainTextTruncated_paragraph__\"]",
"new_site": 1
},
"Estado de Minas": {
"domain": "em.com.br",
"allow_cookies": 1,
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
"amp_redirect": ".news-blocked-content",
"amp_unhide": 1,
"cs_code": [{
"cond": ".compress-text",
"rm_class": "compress-text"
}
],
"new_site": 1
},
"La Vie": {
"domain": "lavie.fr",
"allow_cookies": 1,