From 2c9951c9911c9baaf3e8e1d137ef5f6aaa973162 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 12 Nov 2020 19:26:54 +0100 Subject: [PATCH] Add La Estrella de Valparaiso (Chile) --- README.md | 1 + background.js | 6 +++--- changelog.txt | 1 + contentScript.js | 2 +- manifest.json | 3 ++- sites.js | 1 + 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 567b842..8f607e9 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,7 @@ For example: [Diario Financiero](https://www.df.cl) - [El Mercurio](https://digital.elmercurio.com) - [El Mercurio de Valparaíso](https://www.mercuriovalpo.cl) - +[La Estrella de Valparaíso](https://www.estrellavalpo.cl) - [La Segunda](https://digital.lasegunda.com) - [La Tercera](https://www.latercera.com) ##### Mexico diff --git a/background.js b/background.js index 65dbe47..16e6acb 100644 --- a/background.js +++ b/background.js @@ -38,7 +38,6 @@ var allow_cookies_default = [ 'elmercurio.com', 'elmundo.es', 'elpais.com', - 'mercuriovalpo.cl', 'eurekareport.com.au', 'faz.net', 'folha.uol.com.br', @@ -195,8 +194,9 @@ var blockedRegexes = { 'elmercurio.com': /(elmercurio\.com\/.+\/js\/modal\.js|merreader\.emol\.cl\/assets\/js\/(vendor\/modal|merPramV\d)\.js|staticmer(\d)?\.emol\.cl\/js\/.+\/(modal|PramModal\.min)\.js)/, 'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/, + 'estrellavalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, 'exame.abril.com.br': /.+\.tinypass\.com\/.+/, - 'folha.uol.com.br': /(.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|js\.matheranalytics\.com\/.+)/, + 'folha.uol.com.br': /(.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|paywall\.folha\.uol\.com\.br\/.+|js\.matheranalytics\.com\/.+)/, 'gelocal.it': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'globo.com': /.+\.tinypass\.com\/.+/, 'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/, @@ -229,7 +229,7 @@ var blockedRegexes = { 'lopinion.fr': /.+\.poool\.fr\/.+/, 'lrb.co.uk': /.+\.tinypass\.com\/.+/, 'marketwatch.com': /cdn\.cxense\.com\/.+/, - 'mercuriovalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/wp-content\/themes\/papel-digital-2019-desktop\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, + 'mercuriovalpo.cl': /(.+\.mercuriovalpo\.cl\/impresa\/.+\/assets\/(vendor|\d)\.js|pram\.pasedigital\.cl\/API\/User\/Status\?)/, 'modernhealthcare.com': /.+\.tinypass\.com\/.+/, 'nationalgeographic.com': /.+\.blueconic\.net\/.+/, 'nationalreview.com': /(.+\.blueconic\.net\/.+|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/, diff --git a/changelog.txt b/changelog.txt index 91792d5..d3af2cb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add La Estrella de Valparaiso (Chile) Fix-update Folha de S. Paulo (MatherAnalytics) Fix-update WSJ (mobile layout) Update custom sites: allow_cookies diff --git a/contentScript.js b/contentScript.js index 1800311..14ace3b 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1230,7 +1230,7 @@ else if (matchDomain("limesonline.com")) { }, 500); // Delay (in milliseconds) } -else if (matchDomain("mercuriovalpo.cl")) { +else if (matchDomain(["mercuriovalpo.cl", "estrellavalpo.cl"])) { let content = document.querySelector('div.content'); if (content) content.setAttribute('id', 'content_new'); diff --git a/manifest.json b/manifest.json index fbfb601..4fb61bb 100644 --- a/manifest.json +++ b/manifest.json @@ -100,6 +100,7 @@ "*://*.elmundo.es/*", "*://*.elpais.com/*", "*://*.estadao.com.br/*", + "*://*.estrellavalpo.cl/*", "*://*.eurekareport.com.au/*", "*://*.exame.abril.com.br/*", "*://*.examiner.com.au/*", @@ -341,5 +342,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.9.4.3" + "version": "1.9.4.4" } \ No newline at end of file diff --git a/sites.js b/sites.js index ebed6d2..0f55a6f 100644 --- a/sites.js +++ b/sites.js @@ -89,6 +89,7 @@ var defaultSites = "L'Opinion": "lopinion.fr", "L'Orient-Le Jour": "lorientlejour.com", "La Dépêche": "ladepeche.fr", + "La Estrella de Valparaíso": "estrellavalpo.cl", "La Nación": "lanacion.com.ar", "La Repubblica": "repubblica.it", "La Segunda": "lasegunda.com",