mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 02:14:15 +01:00
Add ElMundo.es (amp for premium)
This commit is contained in:
parent
8296a94902
commit
50a6d95fae
5 changed files with 24 additions and 0 deletions
|
@ -205,6 +205,7 @@ Install add-on by downloading xpi-file.
|
||||||
[Volkskrant](https://www.volkskrant.nl) -
|
[Volkskrant](https://www.volkskrant.nl) -
|
||||||
[Vrij Nederland](https://www.vn.nl)
|
[Vrij Nederland](https://www.vn.nl)
|
||||||
##### Spain
|
##### Spain
|
||||||
|
[El Mundo](https://www.elmundo.es) -
|
||||||
[El País](https://elpais.com)
|
[El País](https://elpais.com)
|
||||||
##### Sweden
|
##### Sweden
|
||||||
[Aftonbladet](https://www.aftonbladet.se) -
|
[Aftonbladet](https://www.aftonbladet.se) -
|
||||||
|
|
|
@ -156,6 +156,7 @@ var blockedRegexes = {
|
||||||
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/engassets\/_next\/static\/chunks\/framework.+\.js)/,
|
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/engassets\/_next\/static\/chunks\/framework.+\.js)/,
|
||||||
'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/,
|
'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/,
|
||||||
'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/,
|
'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/,
|
||||||
|
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
||||||
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
||||||
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
||||||
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
|
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
|
||||||
|
|
|
@ -636,6 +636,25 @@ else if (matchDomain('lejdd.fr')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('elmundo.es')) {
|
||||||
|
let premium = document.querySelector('.ue-c-article__premium');
|
||||||
|
window.setTimeout(function () {
|
||||||
|
if (premium && window.location.href.includes('/www.elmundo.es/')) {
|
||||||
|
window.location.href = window.location.href.replace('/www.', '/amp.');
|
||||||
|
}
|
||||||
|
}, 500); // Delay (in milliseconds)
|
||||||
|
if (window.location.href.includes('/amp.elmundo.es/')) {
|
||||||
|
let paywall = document.querySelector('div[amp-access="authorized!=true"]');
|
||||||
|
if (paywall) {
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
let div_hidden = document.querySelector('div[amp-access="authorized=true"]');
|
||||||
|
if (div_hidden) {
|
||||||
|
div_hidden.removeAttribute('amp-access-hide');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// General Functions
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
"*://*.economist.com/*",
|
"*://*.economist.com/*",
|
||||||
"*://*.elcomercio.pe/*",
|
"*://*.elcomercio.pe/*",
|
||||||
"*://*.elmercurio.com/*",
|
"*://*.elmercurio.com/*",
|
||||||
|
"*://*.elmundo.es/*",
|
||||||
"*://*.elpais.com/*",
|
"*://*.elpais.com/*",
|
||||||
"*://*.estadao.com.br/*",
|
"*://*.estadao.com.br/*",
|
||||||
"*://*.eurekareport.com.au/*",
|
"*://*.eurekareport.com.au/*",
|
||||||
|
@ -236,6 +237,7 @@
|
||||||
"*://*.poool.fr/*",
|
"*://*.poool.fr/*",
|
||||||
"*://*.tinypass.com/*",
|
"*://*.tinypass.com/*",
|
||||||
"*://*.piano.io/*",
|
"*://*.piano.io/*",
|
||||||
|
"*://*.ampproject.org/*",
|
||||||
"*://*.blueconic.net/*",
|
"*://*.blueconic.net/*",
|
||||||
"*://*.cedsdigital.it/*",
|
"*://*.cedsdigital.it/*",
|
||||||
"*://*.corriereobjects.it/*",
|
"*://*.corriereobjects.it/*",
|
||||||
|
|
1
sites.js
1
sites.js
|
@ -31,6 +31,7 @@ var defaultSites =
|
||||||
"Digiday": "digiday.com",
|
"Digiday": "digiday.com",
|
||||||
"El Comercio": "elcomercio.pe",
|
"El Comercio": "elcomercio.pe",
|
||||||
"El Mercurio": "elmercurio.com",
|
"El Mercurio": "elmercurio.com",
|
||||||
|
"El Mundo": "elmundo.es",
|
||||||
"El País": "elpais.com",
|
"El País": "elpais.com",
|
||||||
"Encyclopedia Britannica": "britannica.com",
|
"Encyclopedia Britannica": "britannica.com",
|
||||||
"Eureka Report": "eurekareport.com.au",
|
"Eureka Report": "eurekareport.com.au",
|
||||||
|
|
Loading…
Reference in a new issue