mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Add Expansion (Spain)
This commit is contained in:
parent
5234574f65
commit
7e2bd2a556
@ -308,7 +308,8 @@ Grouped in options:\
|
||||
[ABC](https://www.abc.es) -
|
||||
[El Mundo](https://www.elmundo.es) -
|
||||
[El País](https://elpais.com) -
|
||||
[El Periódico](https://www.elperiodico.com)\
|
||||
[El Periódico](https://www.elperiodico.com) -
|
||||
[Expansión}(https://www.expansion.com)\
|
||||
Grouped in options:\
|
||||
Grupo Vocento (ABC) regional sites like
|
||||
[Diario Vasco](https://www.diariovasco.com) -
|
||||
|
@ -50,6 +50,7 @@ var allow_cookies_default = [
|
||||
'esprit.presse.fr',
|
||||
'euobserver.com',
|
||||
'eurekareport.com.au',
|
||||
'expansion.com',
|
||||
'faz.net',
|
||||
'financialpost.com',
|
||||
'folha.uol.com.br',
|
||||
@ -206,12 +207,13 @@ var blockedRegexes = {
|
||||
'editorialedomani.it': /(.+\.editorialedomani\.it\/pelcro\.js|js\.pelcro\.com\/.+)/,
|
||||
'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/,
|
||||
'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
|
||||
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
||||
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
|
||||
'elpais.com': /\.cdn\.arcpublishing\.com\/arc\/subs\/p\.min\.js/,
|
||||
'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
|
||||
'estadao.com.br': /acesso\.estadao\.com\.br\/paywall\/.+\/pw\.js/,
|
||||
'estrellavalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/,
|
||||
'exame.abril.com.br': /cdn\.tinypass\.com\/.+/,
|
||||
'expansion.com': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
|
||||
'financialpost.com': /cdn\.tinypass\.com\/.+/,
|
||||
'folha.uol.com.br': /(.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|paywall\.folha\.uol\.com\.br\/.+|js\.matheranalytics\.com\/.+)/,
|
||||
'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_[^y].+\.js/,
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Expansion (Spain)
|
||||
Add FreiePresse.de
|
||||
Add L'Obs (France)
|
||||
Add Paris Match (France)
|
||||
|
@ -10,7 +10,7 @@ var fr_groupe_ebra_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain.fr', '
|
||||
var fr_groupe_la_depeche_domains = ['centrepresseaveyron.fr', 'ladepeche.fr', 'lindependant.fr', 'midi-olympique.fr', 'midilibre.fr', 'nrpyrenees.fr', 'petitbleu.fr'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['charliehebdo.fr', 'elmundo.es', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'];
|
||||
var arr_localstorage_hold = ['charliehebdo.fr', 'elmundo.es', 'expansion.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'];
|
||||
arr_localstorage_hold = arr_localstorage_hold.concat(de_funke_media_domains, es_grupo_vocento_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)){
|
||||
window.localStorage.clear();
|
||||
@ -969,14 +969,13 @@ else if (matchDomain(['lejdd.fr', 'parismatch.com'])) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('elmundo.es')) {
|
||||
else if (domain = matchDomain(['elmundo.es', 'expansion.com'])) {
|
||||
let premium = document.querySelector('.ue-c-article__premium');
|
||||
window.setTimeout(function () {
|
||||
if (premium && window.location.href.includes('/www.elmundo.es/')) {
|
||||
if (premium && window.location.href.includes('/www.' + domain + '/')) {
|
||||
window.setTimeout(function () {
|
||||
window.location.href = window.location.href.replace('/www.', '/amp.');
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
if (window.location.href.includes('/amp.elmundo.es/')) {
|
||||
}, 500); // Delay (in milliseconds)
|
||||
} else if (window.location.href.includes('/amp.' + domain + '/')) {
|
||||
let paywall = document.querySelector('div[amp-access="authorized!=true"]');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
@ -985,6 +984,8 @@ else if (matchDomain('elmundo.es')) {
|
||||
div_hidden.removeAttribute('amp-access-hide');
|
||||
}
|
||||
}
|
||||
let adverts = document.querySelectorAll('.advertising, amp-embed');
|
||||
removeDOMElement(...adverts);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -132,6 +132,7 @@
|
||||
"*://*.eurekareport.com.au/*",
|
||||
"*://*.exame.abril.com.br/*",
|
||||
"*://*.examiner.com.au/*",
|
||||
"*://*.expansion.com/*",
|
||||
"*://*.faz.net/*",
|
||||
"*://*.fd.nl/*",
|
||||
"*://*.financialpost.com/*",
|
||||
@ -413,5 +414,5 @@
|
||||
"*://*.repstatic.it/*",
|
||||
"*://*.userzoom.com/*"
|
||||
],
|
||||
"version": "2.0.0.3"
|
||||
"version": "2.0.0.4"
|
||||
}
|
Loading…
Reference in New Issue
Block a user