mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:31:57 +01:00
Fix El Mercurio (not Inversiones/Legal)
This commit is contained in:
parent
41065c7aae
commit
2317b497cf
6 changed files with 15 additions and 41 deletions
|
@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
|
|||
|
||||
Post-release
|
||||
Add Boersen-zeitung.de
|
||||
Fix El Mercurio (not Inversiones/Legal)
|
||||
Fix ESPN USA
|
||||
|
||||
* v3.2.0.0 (2023-05-29)
|
||||
|
|
|
@ -49,7 +49,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 = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_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, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
|
||||
var arr_localstorage_hold = ['aftonbladet.se', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'gauchazh.clicrbs.com.br', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_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, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -1102,11 +1102,11 @@ else
|
|||
|
||||
} else if (window.location.hostname.match(/\.(dk|fi|se)$/)) {//denmark/finland/sweden
|
||||
|
||||
if (matchDomain(['aftonbladet.se'])) {
|
||||
if (matchDomain('aftonbladet.se')) {
|
||||
let url = window.location.href;
|
||||
let paywall = document.querySelector('div.paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let paywall = document.querySelectorAll('div.paywall');
|
||||
if (paywall.length) {
|
||||
removeDOMElement(...paywall);
|
||||
let article = document.querySelector('article');
|
||||
if (article)
|
||||
article.firstChild.before(archiveLink(url));
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.2.0.2"
|
||||
"version": "3.2.0.3"
|
||||
}
|
||||
|
|
|
@ -757,5 +757,5 @@
|
|||
"*://*.wyleex.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.2.0.2"
|
||||
"version": "3.2.0.3"
|
||||
}
|
||||
|
|
12
sites.js
12
sites.js
|
@ -24,10 +24,6 @@ var defaultSites = {
|
|||
domain: "adweek.com",
|
||||
useragent: "googlebot"
|
||||
},
|
||||
"Ärzte Zeitung": {
|
||||
domain: "aerztezeitung.de",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Aftonbladet (link to archive.is)": {
|
||||
domain: "aftonbladet.se",
|
||||
allow_cookies: 1,
|
||||
|
@ -102,6 +98,10 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(\.artnet\.com\/paywall-ajax\.php|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
|
||||
},
|
||||
"Ärzte Zeitung": {
|
||||
domain: "aerztezeitung.de",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Atavist Magazine": {
|
||||
domain: "atavist.com"
|
||||
},
|
||||
|
@ -490,7 +490,7 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(\.tinypass\.com\/|cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/
|
||||
},
|
||||
"El Mercurio (+ regional/opt-in to custom sites)": {
|
||||
"El Mercurio (not Inversiones/Legal; + regional/opt-in to custom sites)": {
|
||||
domain: "elmercurio.com",
|
||||
group: [
|
||||
"elmercurio.com"
|
||||
|
@ -500,7 +500,7 @@ var defaultSites = {
|
|||
domain: "elmercurio.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.(elmercurio\.com|emol\.cl)\/(.+\/)?js\/(.+\/)?(modal|merPramV\d|PramModal\.min)\.js/,
|
||||
useragent: "facebookbot"
|
||||
useragent: "googlebot"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
"Adweek (free articles only)": {
|
||||
"domain": "adweek.com",
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"Citywire": {
|
||||
"domain": "citywire.com",
|
||||
"allow_cookies": 1,
|
||||
|
@ -32,13 +28,7 @@
|
|||
"domain": "elmercurio.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.(elmercurio\\.com|emol\\.cl)\\/(.+\\/)?js\\/(.+\\/)?(modal|merPramV\\d|PramModal\\.min)\\.js",
|
||||
"useragent": "facebookbot"
|
||||
},
|
||||
"El Mercurio (not Inversiones; + regional/opt-in to custom sites)": {
|
||||
"domain": "elmercurio.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.(elmercurio\\.com|emol\\.cl)\\/(.+\\/)?js\\/(.+\\/)?(modal|merPramV\\d|PramModal\\.min)\\.js",
|
||||
"useragent": "facebookbot"
|
||||
"useragent": "googlebot"
|
||||
},
|
||||
"ESPN USA (news only)": {
|
||||
"domain": "espn.com",
|
||||
|
@ -56,23 +46,6 @@
|
|||
"add_ext_link": "div.paywall-wrapper|p#gpar1",
|
||||
"add_ext_link_type": "archive.is"
|
||||
},
|
||||
"Il Messaggero (+ regional)": {
|
||||
"domain": "###_it_ilmessaggero",
|
||||
"group": [
|
||||
"corriereadriatico.it",
|
||||
"ilgazzettino.it",
|
||||
"ilmattino.it",
|
||||
"ilmessaggero.it",
|
||||
"quotidianodipuglia.it"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.(cedscdn|cedsdigital)\\.it\\/.+\\/PaywallMeter\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|consent|subscriptions)-.+\\.(m)?js)"
|
||||
},
|
||||
"La Vanguardia": {
|
||||
"domain": "lavanguardia.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\/ev\\.lavanguardia\\.com"
|
||||
},
|
||||
"Le Point (cached articles only)": {
|
||||
"domain": "lepoint.fr",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue