From 7280b4523422a1a8f9dd3d7459955e35fc71173a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 28 Nov 2020 18:34:26 +0100 Subject: [PATCH] Fix-update El Mercurio & La Segunda (mobile) --- background.js | 4 ++-- changelog.txt | 1 + contentScript.js | 11 +++++++++++ manifest.json | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 75bde24..f6a0949 100644 --- a/background.js +++ b/background.js @@ -193,7 +193,7 @@ var blockedRegexes = { 'economist.com': /cdn\.tinypass\.com\/.+/, 'editorialedomani.it': /(.+\.editorialedomani\.it\/pelcro\.js|js\.pelcro\.com\/.+)/, 'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/, - '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)/, + 'elmercurio.com': /\.(elmercurio\.com|emol\.cl)\/.+\/js\/((vendor\/)?modal|merPramV\d|PramModal\.min)\.js/, 'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/, 'elperiodico.com': /cdn\.ampproject\.org\/v\d\/amp-(access|consent)-.+\.js/, @@ -223,7 +223,7 @@ var blockedRegexes = { 'kurier.at': /cdn\.tinypass\.com\/.+/, 'la-croix.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/, 'ladepeche.fr': /.+\.poool\.fr\/.+/, - 'lasegunda.com': /segreader\.emol\.cl\/assets\/js\/(vendor\/modal\.js|merPramV\d\.js)/, + 'lasegunda.com': /\.(lasegunda\.com|emol\.cl)\/.+\/js\/((vendor\/)?modal|merPramV\d|PramModal\.min)\.js/, 'lastampa.it': /.+\.repstatic\.it\/minify\/sites\/lastampa\/.+\/config\.cache\.php\?name=social_js/, 'latercera.com': /(.+\.latercera\.com\/arc\/subs\/p\.js|cdn\.cxense\.com\/.+)/, 'latimes.com': /js\.matheranalytics\.com\/.+/, diff --git a/changelog.txt b/changelog.txt index b3a9978..bb7835c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix-update El Mercurio & La Segunda (mobile) * v1.9.7.0 (2020-11-27) Add Alma Talent sites (Finland) diff --git a/contentScript.js b/contentScript.js index 8bab49e..4cab450 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1715,6 +1715,17 @@ else if (matchDomain('la-croix.com')) { } } +else if (matchDomain('lasegunda.com')) { + let url = window.location.href; + if (url.includes('digital.lasegunda.com/mobile')) { + let lessreadmore = document.querySelectorAll('article.lessreadmore'); + for (let article of lessreadmore) + article.classList.remove('lessreadmore'); + let bt_readmore = document.querySelectorAll('div[id*="bt_readmore_"]'); + removeDOMElement(...bt_readmore); + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/manifest.json b/manifest.json index 86dadc3..39b037a 100644 --- a/manifest.json +++ b/manifest.json @@ -367,5 +367,5 @@ "*://*.repstatic.it/*", "*://*.userzoom.com/*" ], - "version": "1.9.7.0" + "version": "1.9.7.1" } \ No newline at end of file