From df49cf12cd64ccaa6693189c37ed7f6451e762b4 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 26 Apr 2022 08:15:18 +0200 Subject: [PATCH] Add Diari de Girona & Emporda --- README.md | 2 ++ changelog.txt | 1 + contentScript.js | 6 +++--- manifest.json | 4 +++- sites.js | 2 ++ sites_updated.json | 5 ++--- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 14c73f10..9f8de48f 100644 --- a/README.md +++ b/README.md @@ -578,6 +578,7 @@ Grouped in options:\ Grouped in options:\ *Grupo Prensa Ibérica* sites like\ +[Diari de Girona](https://www.diaridegirona.cat) - [Diario Córdoba](https://www.diariocordoba.com) - [Diario de Ibiza](https://www.diariodeibiza.es) - [Diario de Mallorca](https://www.diariodemallorca.es) - @@ -586,6 +587,7 @@ Grouped in options:\ [El Periódico de España](https://www.ese.es) - [El Periódico Extremadura](https://www.elperiodicoextremadura.com) - [El Periódico Mediterráneo](https://www.elperiodicomediterraneo.com) - +[Empordà](https://www.emporda.info) - [Faro de Vigo](https://www.farodevigo.es) - [Información](https://www.informacion.es) - [La Nueva España](https://www.lne.es) - diff --git a/changelog.txt b/changelog.txt index fce2386c..8731ac44 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Diari de Girona & Emporda Fix eNotes Fix Lequipe.fr (json) diff --git a/contentScript.js b/contentScript.js index a3e0d5ea..4279d047 100644 --- a/contentScript.js +++ b/contentScript.js @@ -9,7 +9,7 @@ var ca_torstar_domains = ['niagarafallsreview.ca', 'stcatharinesstandard.ca', 't var de_funke_media_domains = ['abendblatt.de', 'braunschweiger-zeitung.de', 'morgenpost.de', 'nrz.de', 'otz.de', 'thueringer-allgemeine.de', 'tlz.de', 'waz.de', 'wp.de', 'wr.de']; var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de', 'rnd.de']; var de_madsack_custom_domains = ['aller-zeitung.de', 'dnn.de', 'gnz.de', 'goettinger-tageblatt.de', 'paz-online.de', 'sn-online.de', 'waz-online.de']; -var es_epiberica_domains = ['diariocordoba.com', 'diariodeibiza.es', 'diariodemallorca.es', 'eldia.es', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'epe.es', 'farodevigo.es', 'informacion.es', 'laopinioncoruna.es', 'laopiniondemalaga.es', 'laopiniondemurcia.es', 'laopiniondezamora.es', 'laprovincia.es', 'levante-emv.com', 'lne.es']; +var es_epiberica_domains = ['diaridegirona.cat', 'diariocordoba.com', 'diariodeibiza.es', 'diariodemallorca.es', 'eldia.es', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'epe.es', 'farodevigo.es', 'informacion.es', 'laopinioncoruna.es', 'laopiniondemalaga.es', 'laopiniondemurcia.es', 'laopiniondezamora.es', 'laprovincia.es', 'levante-emv.com', 'lne.es']; var es_grupo_vocento_domains = ['diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'lasprovincias.es', 'laverdad.es', 'lavozdigital.es']; var es_unidad_domains = ['elmundo.es', 'expansion.com', 'marca.com']; var fi_alma_talent_domains = ['arvopaperi.fi', 'iltalehti.fi', 'kauppalehti.fi', 'marmai.fi', 'mediuutiset.fi', 'mikrobitti.fi', 'talouselama.fi', 'tekniikkatalous.fi', 'tivi.fi', 'uusisuomi.fi']; @@ -1034,7 +1034,7 @@ else if (matchDomain('nyteknik.se')) { else csDone = true; -} else if (window.location.hostname.match(/\.(es|pt)$/) || matchDomain(['diariocordoba.com', 'diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal +} else if (window.location.hostname.match(/\.(es|pt|cat)$/) || matchDomain(['diariocordoba.com', 'diariovasco.com', 'elconfidencial.com', 'elcorreo.com', 'elespanol.com', 'elpais.com', 'elperiodico.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'expansion.com', 'larioja.com', 'levante-emv.com', 'marca.com', 'politicaexterior.com'])) {//spain/portugal if (matchDomain('abc.es')) { let paywall = document.querySelector('.cierre-suscripcion:not([style="display: none;"])'); @@ -2657,7 +2657,7 @@ else if (matchDomain('enotes.com')) { let blurred = document.querySelectorAll('div[class^="_"]'); for (let elem of blurred) elem.removeAttribute('class'); - let intro = document.querySelectorAll('div.o-rte-text[id] > p:not([class]), div.o-rte-text[id] > h3'); + let intro = document.querySelectorAll('div.o-rte-text > p:not([class]), div.o-rte-text > h3'); for (let elem of intro) removeDOMElement(elem); } diff --git a/manifest.json b/manifest.json index 36d3561d..9c3a6926 100644 --- a/manifest.json +++ b/manifest.json @@ -164,6 +164,7 @@ "*://*.deutsche-wirtschafts-nachrichten.de/*", "*://*.df.cl/*", "*://*.di.se/*", + "*://*.diaridegirona.cat/*", "*://*.diariocordoba.com/*", "*://*.diariocorreo.pe/*", "*://*.diariodeibiza.es/*", @@ -201,6 +202,7 @@ "*://*.elperiodicoextremadura.com/*", "*://*.elperiodicomediterraneo.com/*", "*://*.eltiempo.com/*", + "*://*.emporda.info/*", "*://*.enotes.com/*", "*://*.entrepreneur.com/*", "*://*.epe.es/*", @@ -673,5 +675,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.6.6.1" + "version": "2.6.6.2" } diff --git a/sites.js b/sites.js index ced19cad..67042c9a 100644 --- a/sites.js +++ b/sites.js @@ -660,6 +660,7 @@ var defaultSites = { "Grupo Prensa Ibérica": { domain: "###_es_epiberica", group: [ + "diaridegirona.cat", "diariocordoba.com", "diariodeibiza.es", "diariodemallorca.es", @@ -667,6 +668,7 @@ var defaultSites = { "elperiodicodearagon.com", "elperiodicoextremadura.com", "elperiodicomediterraneo.com", + "emporda.info", "epe.es", "farodevigo.es", "informacion.es", diff --git a/sites_updated.json b/sites_updated.json index 0461e847..25dd3076 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -35,13 +35,12 @@ "cond": "div[class^=\"_\"]", "rm_attrib": "class" }, { - "cond": "div.o-rte-text[id] > p:not([class]), div.o-rte-text[id] > h3a", + "cond": "div.o-rte-text > p:not([class]), div.o-rte-text > h3a", "rm_elem": 1 } ] } - ], - "new_site": 1 + ] }, "Fortune": { "domain": "fortune.com",