mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Add Estado de Minas (Brazil)
This commit is contained in:
parent
4e94e7ebdd
commit
6dc1b25de1
6 changed files with 40 additions and 1 deletions
|
@ -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) -
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Estado de Minas (Brazil)
|
||||
Fix LesEchos.fr (refresh)
|
||||
Fix Quartz (newsletter)
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
5
sites.js
5
sites.js
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue