diff --git a/background.js b/background.js index ceb84bd..1646c6d 100755 --- a/background.js +++ b/background.js @@ -152,7 +152,7 @@ var blockedRegexes = { 'corriere.it': /(\.rcsobjects\.it\/rcs_cpmt\/|\.rcsobjects\.it\/rcs_tracking-service\/|\.corriereobjects\.it\/.+\/js\/_paywall\.sjs|\.corriereobjects\.it\/.*\/js\/tracking\/|\.userzoom\.com\/files\/js\/|\.lp4\.io\/app\/)/, 'digiday.com': /.+\.tinypass\.com\/.+/, 'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/, -'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia\/default.js/, +'elcomercio.pe': /elcomercio\.pe\/pf\/dist\/template\/elcomercio-noticia.+\.js/, 'elmercurio.com': /merreader\.emol\.cl\/assets\/js\/vendor\/modal\.js/, 'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/, 'exame.abril.com.br': /.+\.tinypass\.com\/.+/, @@ -160,7 +160,7 @@ var blockedRegexes = { 'globo.com': /.+\.tinypass\.com\/.+/, 'foreignpolicy.com': /.+\.tinypass\.com\/.+/, 'fortune.com': /.+\.tinypass\.com\/.+/, -'gestion.pe': /gestion\.pe\/pf\/dist\/template\/gestion-noticia\/default.js/, +'gestion.pe': /gestion\.pe\/pf\/dist\/template\/gestion-noticia.+\.js/, 'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/, 'haaretz.com': /haaretz\.com\/hdc\/web\/js\/minified\/header-scripts-int.js.+/, 'ilmessaggero.it': /(utils\.cedsdigital\.it\/js\/PaywallMeter\.js|static\.viralize\.tv\/viralize_player)/, diff --git a/contentScript.js b/contentScript.js index 608172d..e289782 100755 --- a/contentScript.js +++ b/contentScript.js @@ -540,6 +540,13 @@ else if (matchDomain('faz.net')) { } } +else if (matchDomain('gestion.pe')) { + const paywall = document.querySelector('.story-content__nota-premium'); + if (paywall) { + paywall.classList.remove('story-content__nota-premium'); + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) {