mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:41:57 +01:00
Remove L'Opinion.fr (fix obsolete)
This commit is contained in:
parent
3300e221e7
commit
d1bba47a0e
7 changed files with 19 additions and 24 deletions
|
@ -440,7 +440,6 @@ Grouped in options:\
|
|||
[L'Humanité](https://www.humanite.fr) -
|
||||
[L'Obs](https://www.nouvelobs.com) -
|
||||
[L'Oeil de la Photographie (fr/en)](https://loeildelaphotographie.com) -
|
||||
[L'Opinion](https://www.lopinion.fr) -
|
||||
[L'Usine Nouvelle](https://www.usinenouvelle.com) -
|
||||
[La Croix](https://www.la-croix.com) -
|
||||
[La Libre](https://www.lalibre.be) -
|
||||
|
|
|
@ -1337,7 +1337,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
|||
let custom_domain = message.data.domain;
|
||||
let group = message.data.group;
|
||||
if (group) {
|
||||
let nofix_groups = ['###_substack_custom', '###_ch_tamedia', '###_it_citynews'];
|
||||
let nofix_groups = ['###_substack_custom', '###_ch_tamedia', '###_fi_alma_talent', '###_it_citynews'];
|
||||
if (enabledSites.concat(nofix_groups).includes(group) && !custom_flex_domains.includes(custom_domain)) {
|
||||
let rules;
|
||||
if (group === 'elmercurio.com')
|
||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Remove DN.no (fix obsolete)
|
||||
Remove L'Opinion.fr (fix obsolete)
|
||||
Remove Spiegel.de (fix obsolete)
|
||||
Fix Conde Nast magazines (cookies)
|
||||
Fix DvhN.nl (json)
|
||||
|
|
|
@ -1602,19 +1602,6 @@ else if (matchDomain('loeildelaphotographie.com')) {
|
|||
blurred_image.removeAttribute('style');
|
||||
}
|
||||
|
||||
else if (matchDomain('lopinion.fr')) {
|
||||
if (window.location.search.startsWith('?_amp=true'))
|
||||
amp_unhide_access_hide('="access"', '="NOT access"');
|
||||
else {
|
||||
let paywall = document.querySelector('div#poool-widget');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('marianne.net')) {
|
||||
let paywall = document.querySelector('div.paywall');
|
||||
if (paywall && dompurify_loaded) {
|
||||
|
@ -2018,9 +2005,19 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) {
|
|||
for (let item of par.insertbox_text) {
|
||||
if (item.children) {
|
||||
for (let child of item.children) {
|
||||
let span = document.createElement('span');
|
||||
span.innerText = child.text;
|
||||
elem.appendChild(span);
|
||||
if (child.text) {
|
||||
let span = document.createElement('span');
|
||||
span.innerText = child.text;
|
||||
elem.appendChild(span);
|
||||
} else if (child.children) {
|
||||
for (let sub_child of child.children) {
|
||||
if (sub_child.text) {
|
||||
let sub_span = document.createElement('span');
|
||||
sub_span.innerText = sub_child.text;
|
||||
elem.appendChild(sub_span);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,6 +63,9 @@ window.setTimeout(function () {
|
|||
} else if (hostname.match(/\.(es|cat)$/) || matchDomain(['diariocordoba.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info'])) {
|
||||
if (document.querySelector('link[href*="/estaticos-cdn."]'))
|
||||
group = '###_es_epiberica';
|
||||
} else if (hostname.endsWith('.fi')) {
|
||||
if (document.querySelector('link[href^="https://assets.almatalent.fi"]'))
|
||||
group = '###_fi_alma_talent';// no fix
|
||||
} else if (hostname.endsWith('.fr')) {
|
||||
if (document.querySelector('link[href*=".fr/static/bloc/ripolinage/header/cf-header/"]'))
|
||||
group = '###_fr_gcf';
|
||||
|
|
|
@ -391,7 +391,6 @@
|
|||
"*://*.lne.es/*",
|
||||
"*://*.loebclassics.com/*",
|
||||
"*://*.loeildelaphotographie.com/*",
|
||||
"*://*.lopinion.fr/*",
|
||||
"*://*.lrb.co.uk/*",
|
||||
"*://*.lunion.fr/*",
|
||||
"*://*.lvz.de/*",
|
||||
|
|
6
sites.js
6
sites.js
|
@ -1040,10 +1040,6 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /cdn\.loeildelaphotographie\.com\/wp-content\/.+\/hague-child\/js\/script-.+\.js/
|
||||
},
|
||||
"L'Opinion": {
|
||||
domain: "lopinion.fr",
|
||||
block_regex: /(\.poool\.fr\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"L'Usine Nouvelle": {
|
||||
domain: "usinenouvelle.com",
|
||||
allow_cookies: 1,
|
||||
|
@ -2432,4 +2428,4 @@ init_custom_flex_domains();
|
|||
var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'townsvillebulletin.com.au'];
|
||||
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
|
||||
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
|
||||
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'spiegel.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.no', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'spiegel.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);
|
||||
|
|
Loading…
Reference in a new issue