mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Add L'Oeil de la Photographie (fr/en)
This commit is contained in:
parent
67b7cf4fc7
commit
77e0c3ba7f
@ -241,6 +241,7 @@ Alma Talent sites (grouped in options) like
|
|||||||
[Esprit](https://esprit.presse.fr) -
|
[Esprit](https://esprit.presse.fr) -
|
||||||
[L'Express](https://www.lexpress.fr) -
|
[L'Express](https://www.lexpress.fr) -
|
||||||
[L'Obs](https://www.nouvelobs.com) -
|
[L'Obs](https://www.nouvelobs.com) -
|
||||||
|
[L'Oeil de la Photographie (fr/en)](https://loeildelaphotographie.com) -
|
||||||
[L'Opinion](https://www.lopinion.fr) -
|
[L'Opinion](https://www.lopinion.fr) -
|
||||||
[L'Usine Nouvelle](https://www.usinenouvelle.com) -
|
[L'Usine Nouvelle](https://www.usinenouvelle.com) -
|
||||||
[La Croix](https://www.la-croix.com) -
|
[La Croix](https://www.la-croix.com) -
|
||||||
|
@ -99,6 +99,7 @@ var allow_cookies_default = [
|
|||||||
'letelegramme.fr',
|
'letelegramme.fr',
|
||||||
'lexpress.fr',
|
'lexpress.fr',
|
||||||
'lne.es',
|
'lne.es',
|
||||||
|
'loeildelaphotographie.com',
|
||||||
'lrb.co.uk',
|
'lrb.co.uk',
|
||||||
'marketwatch.com',
|
'marketwatch.com',
|
||||||
'medium.com',
|
'medium.com',
|
||||||
@ -334,6 +335,7 @@ var blockedRegexes = {
|
|||||||
'lexpress.fr': /\.poool\.fr\//,
|
'lexpress.fr': /\.poool\.fr\//,
|
||||||
'livemint.com': /(\.livemint\.com\/js\/localWorker\.js|analytics\.htmedia\.in\/analytics-js\/.+\.js)/,
|
'livemint.com': /(\.livemint\.com\/js\/localWorker\.js|analytics\.htmedia\.in\/analytics-js\/.+\.js)/,
|
||||||
'lne.es': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
|
'lne.es': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/,
|
||||||
|
'loeildelaphotographie.com': /cdn\.loeildelaphotographie\.com\/wp-content\/.+\/hague-child\/js\/script-.+\.js/,
|
||||||
'lopinion.fr': /\.poool\.fr\//,
|
'lopinion.fr': /\.poool\.fr\//,
|
||||||
'lrb.co.uk': /\.tinypass\.com\//,
|
'lrb.co.uk': /\.tinypass\.com\//,
|
||||||
'marketwatch.com': /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
|
'marketwatch.com': /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
|
||||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Add Levante-EMV (Spain)
|
Add Levante-EMV (Spain)
|
||||||
|
Add L'Oeil de la Photographie (fr/en)
|
||||||
Add The New Atlantis
|
Add The New Atlantis
|
||||||
Update custom sites (optional: only permissions for added sites)
|
Update custom sites (optional: only permissions for added sites)
|
||||||
|
|
||||||
|
101
contentScript.js
101
contentScript.js
@ -754,7 +754,7 @@ else if (matchDomain('politicaexterior.com')) {
|
|||||||
else
|
else
|
||||||
csDone = true;
|
csDone = true;
|
||||||
|
|
||||||
} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'ledevoir.com', 'lejsl.com', 'nouvelobs.com', 'parismatch.com'])) {//france
|
} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'journaldunet.com', 'la-croix.com', 'ledauphine.com', 'ledevoir.com', 'lejsl.com', 'loeildelaphotographie.com', 'nouvelobs.com', 'parismatch.com'])) {//france
|
||||||
|
|
||||||
if (matchDomain('alternatives-economiques.fr')) {
|
if (matchDomain('alternatives-economiques.fr')) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
@ -772,6 +772,17 @@ else if (matchDomain('atlantico.fr')) {
|
|||||||
paywall.classList.remove('dpslvp');
|
paywall.classList.remove('dpslvp');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('challenges.fr')) {
|
||||||
|
let amorce = document.querySelector('.user-paying-amorce');
|
||||||
|
if (amorce)
|
||||||
|
amorce.setAttribute('style', 'display:none !important');
|
||||||
|
let content = document.querySelector('.user-paying-content');
|
||||||
|
if (content)
|
||||||
|
content.setAttribute('style', 'display: block !important');
|
||||||
|
let paywall = document.querySelector('.temp-paywall');
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('charliehebdo.fr')) {
|
else if (matchDomain('charliehebdo.fr')) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let paywalled_content = document.querySelector('div.ch-paywalled-content');
|
let paywalled_content = document.querySelector('div.ch-paywalled-content');
|
||||||
@ -809,6 +820,24 @@ else if ((domain = matchDomain(fr_groupe_ebra_domains)) && window.location.href.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (domain = matchDomain(fr_groupe_la_depeche_domains)) {
|
||||||
|
let url = window.location.href;
|
||||||
|
let url_new = url.replace(domain + '/', domain + '/amp/');
|
||||||
|
if (url.includes(domain + '/amp/')) {
|
||||||
|
let subscr_section = document.querySelectorAll('[subscriptions-section="content"]');
|
||||||
|
for (let elem of subscr_section)
|
||||||
|
elem.removeAttribute('subscriptions-section');
|
||||||
|
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
|
||||||
|
removeDOMElement(...amp_ads);
|
||||||
|
} else {
|
||||||
|
let paywall = document.querySelector('div.paywall');
|
||||||
|
if (paywall) {
|
||||||
|
removeDOMElement(paywall);
|
||||||
|
window.location.href = url_new;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('journaldunet.com')) {
|
else if (matchDomain('journaldunet.com')) {
|
||||||
let reg_wall = document.querySelector('.reg_wall');
|
let reg_wall = document.querySelector('.reg_wall');
|
||||||
removeDOMElement(reg_wall);
|
removeDOMElement(reg_wall);
|
||||||
@ -818,17 +847,6 @@ else if (matchDomain('journaldunet.com')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(['lejdd.fr', 'parismatch.com'])) {
|
|
||||||
let poool_banner = document.querySelector('#poool-container');
|
|
||||||
let forbidden = document.querySelector('.forbidden');
|
|
||||||
removeDOMElement(poool_banner, forbidden);
|
|
||||||
let bottom_hide = document.querySelector('.cnt[data-poool-mode="hide"]');
|
|
||||||
if (bottom_hide) {
|
|
||||||
bottom_hide.removeAttribute('data-poool-mode');
|
|
||||||
bottom_hide.removeAttribute('style');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (matchDomain('la-croix.com')) {
|
else if (matchDomain('la-croix.com')) {
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (!url.includes('la-croix.com/amp/')) {
|
if (!url.includes('la-croix.com/amp/')) {
|
||||||
@ -846,46 +864,28 @@ else if (matchDomain('la-croix.com')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('lanouvellerepublique.fr')) {
|
||||||
|
let alert_didacticiel = document.querySelector('div.alert-didacticiel');
|
||||||
|
let loading = document.querySelectorAll('span.loading');
|
||||||
|
removeDOMElement(alert_didacticiel, ...loading);
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('ledevoir.com')) {
|
else if (matchDomain('ledevoir.com')) {
|
||||||
let counter = document.querySelector('.popup-msg');
|
let counter = document.querySelector('.popup-msg');
|
||||||
removeDOMElement(counter);
|
removeDOMElement(counter);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (domain = matchDomain(fr_groupe_la_depeche_domains)) {
|
else if (matchDomain(['lejdd.fr', 'parismatch.com'])) {
|
||||||
let url = window.location.href;
|
let poool_banner = document.querySelector('#poool-container');
|
||||||
let url_new = url.replace(domain + '/', domain + '/amp/');
|
let forbidden = document.querySelector('.forbidden');
|
||||||
if (url.includes(domain + '/amp/')) {
|
removeDOMElement(poool_banner, forbidden);
|
||||||
let subscr_section = document.querySelectorAll('[subscriptions-section="content"]');
|
let bottom_hide = document.querySelector('.cnt[data-poool-mode="hide"]');
|
||||||
for (let elem of subscr_section)
|
if (bottom_hide) {
|
||||||
elem.removeAttribute('subscriptions-section');
|
bottom_hide.removeAttribute('data-poool-mode');
|
||||||
let amp_ads = document.querySelectorAll('amp-ad, amp-embed');
|
bottom_hide.removeAttribute('style');
|
||||||
removeDOMElement(...amp_ads);
|
|
||||||
} else {
|
|
||||||
let paywall = document.querySelector('div.paywall');
|
|
||||||
if (paywall) {
|
|
||||||
removeDOMElement(paywall);
|
|
||||||
window.location.href = url_new;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('challenges.fr')) {
|
|
||||||
let amorce = document.querySelector('.user-paying-amorce');
|
|
||||||
if (amorce)
|
|
||||||
amorce.setAttribute('style', 'display:none !important');
|
|
||||||
let content = document.querySelector('.user-paying-content');
|
|
||||||
if (content)
|
|
||||||
content.setAttribute('style', 'display: block !important');
|
|
||||||
let paywall = document.querySelector('.temp-paywall');
|
|
||||||
removeDOMElement(paywall);
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (matchDomain('lanouvellerepublique.fr')) {
|
|
||||||
let alert_didacticiel = document.querySelector('div.alert-didacticiel');
|
|
||||||
let loading = document.querySelectorAll('span.loading');
|
|
||||||
removeDOMElement(alert_didacticiel, ...loading);
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
let abo_banner = document.querySelector('[class^="pgxf3b"]');
|
let abo_banner = document.querySelector('[class^="pgxf3b"]');
|
||||||
@ -941,6 +941,19 @@ else if (matchDomain('liberation.fr')) {
|
|||||||
close_button.click();
|
close_button.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('loeildelaphotographie.com')) {
|
||||||
|
let paywall = document.querySelector('.paywall');
|
||||||
|
if (paywall) {
|
||||||
|
paywall.removeAttribute('class');
|
||||||
|
}
|
||||||
|
let premium_pic_boxes = document.querySelectorAll('.premium-pic-box');
|
||||||
|
let banners = document.querySelectorAll('.membership-promo-container, .login_form_litle');
|
||||||
|
removeDOMElement(...premium_pic_boxes, ...banners);
|
||||||
|
let blurred_images = document.querySelectorAll('img[style*="blur"]');
|
||||||
|
for (let blurred_image of blurred_images)
|
||||||
|
blurred_image.removeAttribute('style');
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain('nouvelobs.com')) {
|
else if (matchDomain('nouvelobs.com')) {
|
||||||
let paywall = document.querySelector('.paywall');
|
let paywall = document.querySelector('.paywall');
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
|
@ -271,6 +271,7 @@
|
|||||||
"*://*.ln-online.de/*",
|
"*://*.ln-online.de/*",
|
||||||
"*://*.lne.es/*",
|
"*://*.lne.es/*",
|
||||||
"*://*.loebclassics.com/*",
|
"*://*.loebclassics.com/*",
|
||||||
|
"*://*.loeildelaphotographie.com/*",
|
||||||
"*://*.lopinion.fr/*",
|
"*://*.lopinion.fr/*",
|
||||||
"*://*.lorientlejour.com/*",
|
"*://*.lorientlejour.com/*",
|
||||||
"*://*.lrb.co.uk/*",
|
"*://*.lrb.co.uk/*",
|
||||||
@ -504,5 +505,5 @@
|
|||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.1.8.3"
|
"version": "2.1.8.4"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
@ -121,6 +121,7 @@ var defaultSites =
|
|||||||
"Kurier.at": "kurier.at",
|
"Kurier.at": "kurier.at",
|
||||||
"L'Express": "lexpress.fr",
|
"L'Express": "lexpress.fr",
|
||||||
"L'Obs": "nouvelobs.com",
|
"L'Obs": "nouvelobs.com",
|
||||||
|
"L'Oeil de la Photographie": "loeildelaphotographie.com",
|
||||||
"L'Opinion": "lopinion.fr",
|
"L'Opinion": "lopinion.fr",
|
||||||
"L'Orient-Le Jour": "lorientlejour.com",
|
"L'Orient-Le Jour": "lorientlejour.com",
|
||||||
"L'Usine Nouvelle": "usinenouvelle.com",
|
"L'Usine Nouvelle": "usinenouvelle.com",
|
||||||
|
Loading…
Reference in New Issue
Block a user