mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Add Elle.fr
This commit is contained in:
parent
6dbbe24f76
commit
5e7b691e69
@ -287,6 +287,7 @@ Grouped in options:\
|
||||
[Atlantico](https://atlantico.fr) -
|
||||
[Challenges](https://www.challenges.fr) -
|
||||
[Charlie Hebdo](https://charliehebdo.fr) -
|
||||
[Elle](https://www.elle.fr) -
|
||||
[Esprit](https://esprit.presse.fr) -
|
||||
[L'Express](https://www.lexpress.fr) -
|
||||
[L'Obs](https://www.nouvelobs.com) -
|
||||
|
@ -71,6 +71,7 @@ var allow_cookies_default = [
|
||||
'elcomercio.pe',
|
||||
'elconfidencial.com',
|
||||
'elespanol.com',
|
||||
'elle.fr',
|
||||
'elmercurio.com',
|
||||
'elpais.com',
|
||||
'elperiodico.com',
|
||||
@ -313,6 +314,7 @@ var blockedRegexes = {
|
||||
'elcomercio.pe': /\/elcomercio\.pe\/pf\/dist\/engine\/react\.js/,
|
||||
'elconfidencial.com': /\.tinypass\.com\//,
|
||||
'elespanol.com': /\.eestatic\.com\/assets_js\/web\/v\d\/historia.*\.min\.js/,
|
||||
'elle.fr': /\.poool\.fr\//,
|
||||
'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
|
||||
'elpais.com': /(\.epimg\.net\/js\/.+\/(noticia|user)\.min\.js|\/elpais\.com\/arc\/subs\/p\.min\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js)/,
|
||||
'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js/,
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Elle.fr
|
||||
Add Marianne (France)
|
||||
Remove Irish Times (obsolete)
|
||||
Remove Sueddeutsche Zeitung (obsolete)
|
||||
|
@ -833,6 +833,14 @@ else if (matchDomain('charliehebdo.fr')) {
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
else if (matchDomain('elle.fr')) {
|
||||
let hidden_images = document.querySelectorAll('img[src^="data:image/"][data-src]');
|
||||
for (let hidden_image of hidden_images)
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-src'));
|
||||
let subscription_bar = document.querySelector('.tc-subscription-bar');
|
||||
removeDOMElement(subscription_bar);
|
||||
}
|
||||
|
||||
else if (matchDomain('esprit.presse.fr')) {
|
||||
let paywall = document.querySelector('.panel-popup-paywall');
|
||||
removeDOMElement(paywall);
|
||||
@ -1922,13 +1930,10 @@ else if (matchDomain('foreignaffairs.com')) {
|
||||
let article_dropcap = document.querySelectorAll('.article-dropcap');
|
||||
for (let elem of article_dropcap)
|
||||
elem.classList.add('loaded');
|
||||
let hidden_images = document.querySelectorAll('img[src^="data:image/"]');
|
||||
let hidden_images = document.querySelectorAll('img[src^="data:image/"][data-src]');
|
||||
for (let hidden_image of hidden_images) {
|
||||
let data_src = hidden_image.getAttribute('data-src');
|
||||
if (data_src) {
|
||||
hidden_image.setAttribute('src', data_src);
|
||||
hidden_image.removeAttribute('class');
|
||||
}
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-src'));
|
||||
hidden_image.removeAttribute('class');
|
||||
}
|
||||
let img_list = document.querySelectorAll('.magazine-list-article img');
|
||||
for (let img_elem of img_list)
|
||||
|
@ -163,6 +163,7 @@
|
||||
"*://*.eldiario.es/*",
|
||||
"*://*.eldiariomontanes.es/*",
|
||||
"*://*.elespanol.com/*",
|
||||
"*://*.elle.fr/*",
|
||||
"*://*.elmercurio.com/*",
|
||||
"*://*.elmundo.es/*",
|
||||
"*://*.elnortedecastilla.es/*",
|
||||
@ -555,5 +556,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.4.0.6"
|
||||
"version": "2.4.0.7"
|
||||
}
|
Loading…
Reference in New Issue
Block a user