mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Add Mediapart.fr
This commit is contained in:
parent
2a75bd1894
commit
e605b32de4
7 changed files with 26 additions and 46 deletions
|
@ -452,6 +452,7 @@ Grouped in options:\
|
|||
[Les Échos](https://www.lesechos.fr) -
|
||||
[Les Inrockuptibles](https://www.lesinrocks.com) -
|
||||
[Marianne](https://www.marianne.net) -
|
||||
[Mediapart](https://www.mediapart.fr) -
|
||||
[Paris Match](https://www.parismatch.com) -
|
||||
[Philonomist (fr/en)](https://www.philonomist.com) -
|
||||
[Science & Vie](https://www.science-et-vie.com) -
|
||||
|
|
|
@ -6,7 +6,7 @@ var ext_name = manifestData.name;
|
|||
var ext_version = manifestData.version;
|
||||
|
||||
const cs_limit_except = ['elespanol.com', 'faz.net', 'globeandmail.com', 'nationalgeographic.com'].concat(de_westfalen_medien_domains);
|
||||
const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spectator.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains);
|
||||
const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'mediapart.fr', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spectator.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains);
|
||||
var currentTabUrl = '';
|
||||
var csDone = false;
|
||||
var optin_setcookie = false;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Mediapart.fr
|
||||
Update block general paywall script (fix Zephr-local)
|
||||
|
||||
* v2.9.1.0 (2022-10-30)
|
||||
|
|
|
@ -40,7 +40,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
|
|||
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['aachener-nachrichten.de', 'aachener-zeitung.de', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'economictimes.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'nknews.org', 'latimes.com', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(ca_gcm_domains, de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
var arr_localstorage_hold = ['aachener-nachrichten.de', 'aachener-zeitung.de', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'lanouvellerepublique.fr', 'nknews.org', 'latimes.com', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(ca_gcm_domains, de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -1547,6 +1547,17 @@ else if (matchDomain('marianne.net')) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('mediapart.fr')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div[id^="paywall_"]');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
csDoneOnce = true;
|
||||
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
|
||||
replaceDomElementExt(url_cache, true, false, 'div.paywall-restricted-content');
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('nouvelobs.com')) {
|
||||
let paywall = document.querySelector('.paywall');
|
||||
removeDOMElement(paywall);
|
||||
|
|
|
@ -405,6 +405,7 @@
|
|||
"*://*.masslive.com/*",
|
||||
"*://*.maz-online.de/*",
|
||||
"*://*.mcall.com/*",
|
||||
"*://*.mediapart.fr/*",
|
||||
"*://*.medium.com/*",
|
||||
"*://*.medscape.com/*",
|
||||
"*://*.menshealth.com/*",
|
||||
|
@ -729,5 +730,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.9.1.1"
|
||||
"version": "2.9.1.2"
|
||||
}
|
||||
|
|
6
sites.js
6
sites.js
|
@ -1227,6 +1227,10 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(\.blueconic\.net\/|\.tinypass\.com\/|\.com\/.+\/loader-wp\/.+\/loader\.min\.js|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
|
||||
},
|
||||
"Mediapart.fr": {
|
||||
domain: "mediapart.fr",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Medium (free articles only)": {
|
||||
domain: "medium.com",
|
||||
allow_cookies: 1,
|
||||
|
@ -2301,4 +2305,4 @@ init_custom_domains();
|
|||
// sites with no fix (background)
|
||||
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
|
||||
var nl_dpg_media_nofix_domains = ['ad.nl', 'bd.nl', 'bndestem.nl', 'destentor.nl', 'ed.nl', 'gelderlander.nl', 'hln.be', 'pzc.nl', 'tubantia.nl'];
|
||||
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nbr.co.nz', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, nl_dpg_media_nofix_domains);
|
||||
var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'handelsblatt.com', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'ouest-france.fr', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(be_mediahuis_nofix_domains, nl_dpg_media_nofix_domains);
|
||||
|
|
|
@ -4,38 +4,11 @@
|
|||
"allow_cookies": 1,
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Grupo Vocento": {
|
||||
"domain": "###_es_grupo_vocento",
|
||||
"group": [
|
||||
"abc.es",
|
||||
"diariosur.es",
|
||||
"diariovasco.com",
|
||||
"elcomercio.es",
|
||||
"elcorreo.com",
|
||||
"eldiariomontanes.es",
|
||||
"elnortedecastilla.es",
|
||||
"hoy.es",
|
||||
"ideal.es",
|
||||
"larioja.com",
|
||||
"lasprovincias.es",
|
||||
"laverdad.es",
|
||||
"lavozdigital.es"
|
||||
],
|
||||
"Mediapart.fr": {
|
||||
"domain": "mediapart.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.evolok\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"exception": [{
|
||||
"domain": "abc.es",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.evolok\\.net\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"useragent": "googlebot",
|
||||
"amp_redirect": ".cierre-suscripcion:not([style=\"display: none;\"]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"L'Humanité": {
|
||||
"domain": "humanite.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.qiota\\.com\\/"
|
||||
"ld_google_webcache": "div[id^=\"paywall_\"]|div.paywall-restricted-content",
|
||||
"new_site": 1
|
||||
},
|
||||
"Outdoor Life": {
|
||||
"domain": "outdoorlife.com",
|
||||
|
@ -52,17 +25,6 @@
|
|||
],
|
||||
"new_site": 1
|
||||
},
|
||||
"The Scotsman": {
|
||||
"domain": "scotsman.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"cs_code": [{
|
||||
"cond": "div.premium.no-entitlement",
|
||||
"rm_class": "no-entitlement"
|
||||
}
|
||||
],
|
||||
"new_site": 1
|
||||
},
|
||||
"The Washington Post": {
|
||||
"domain": "washingtonpost.com",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue