mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Remove Valor Economico (fix obsolete)
This commit is contained in:
parent
34047d48c8
commit
d61baebb88
@ -741,8 +741,7 @@ Grouped in options:\
|
||||
[Folha de S. Paulo](https://www.folha.uol.com.br) -
|
||||
[Grupo Abril](https://grupoabril.com.br) -
|
||||
[O Estado de S. Paulo](https://estadao.com.br) -
|
||||
[O Globo](https://oglobo.globo.com) -
|
||||
[Valor Econômico](https://valor.globo.com)*
|
||||
[O Globo](https://oglobo.globo.com)
|
||||
##### Chile
|
||||
[Diario Financiero](https://www.df.cl) -
|
||||
[El Mercurio (+ regional/opt-in to custom sites)](https://digital.elmercurio.com) -
|
||||
|
@ -6,7 +6,7 @@ var ext_name = manifestData.name;
|
||||
var ext_version = manifestData.version;
|
||||
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk'];
|
||||
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(be_mediahuis_domains, fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains);
|
||||
const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, fr_groupe_sud_ouest_domains, nl_mediahuis_region_domains, no_nhst_media_domains, usa_theathletic_domains);
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
var optin_setcookie = false;
|
||||
@ -22,6 +22,7 @@ var restrictions = {
|
||||
'espn.com': /^((?!espn\.com\/watch).)*$/,
|
||||
'faz.net': /^((?!\.faz\.net\/aktuell\/(\?switchfaznet)?$).)*$/,
|
||||
'foreignaffairs.com': /\.foreignaffairs\.com\/((articles|fa-caching|interviews|reviews|sites)\/)/,
|
||||
'globo.com': /^((?!\/valor\.globo\.com\/).)*$/,
|
||||
'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/,
|
||||
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
||||
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
||||
|
@ -6,6 +6,7 @@ Add Artforum
|
||||
Add Initium Media
|
||||
Add L'Avenir (Belgium)
|
||||
Remove Dagens Nyheter (fix obsolete)
|
||||
Remove Valor Economico (fix obsolete)
|
||||
Fix Business Standard
|
||||
Fix El Mercurio
|
||||
Fix Helsingin Sanomat (dynamic-json)
|
||||
|
@ -2275,7 +2275,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(['clarin.com', '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'])) {//south america
|
||||
|
||||
if (matchDomain('abril.com.br')) {
|
||||
if (window.location.pathname.endsWith('/amp/')) {
|
||||
@ -2399,22 +2399,6 @@ else if (window.location.hostname.endsWith('.cl') && document.querySelector('met
|
||||
body_modal.classList.remove('modal-open');
|
||||
}
|
||||
|
||||
else if (matchDomain('valor.globo.com')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div.paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
csDoneOnce = true;
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url;
|
||||
replaceDomElementExt(url_cache, true, false, 'div.protected-content');
|
||||
}
|
||||
let skeleton_box = document.querySelector('div.glb-skeleton-box');
|
||||
if (skeleton_box) {
|
||||
skeleton_box.classList.remove('glb-skeleton-box');
|
||||
skeleton_box.removeAttribute('style');
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
csDone = true;
|
||||
|
||||
|
2
sites.js
2
sites.js
@ -1313,7 +1313,7 @@ var defaultSites = {
|
||||
domain: "estadao.com.br",
|
||||
block_regex: /(acesso\.estadao\.com\.br\/paywall\/.+\/.+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"O Globo (& Valor Econômico; cached articles only)": {
|
||||
"O Globo": {
|
||||
domain: "globo.com",
|
||||
block_regex: /\.tinypass\.com\//
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user