diff --git a/background.js b/background.js index e5202c3..c0ffb17 100755 --- a/background.js +++ b/background.js @@ -445,7 +445,7 @@ function add_grouped_sites(init_rules) { } for (let domain of es_grupo_vocento_domains) { allow_cookies.push(domain); - blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent|subscriptions)-.+\.js/; + blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|ad|subscriptions)-.+\.js/; } for (let domain of fi_alma_talent_domains) { use_google_bot.push(domain); diff --git a/changelog.txt b/changelog.txt index 3599807..c2d991a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add Atlantico (France) Fix-update Chronicle of Higher Education (scroll) +Fix-update Grupo Vocento (amp) Fix-update New Left Review * v2.1.0.0 (2021-02-28) diff --git a/contentScript.js b/contentScript.js index 22d4c26..b1fdf5d 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1683,9 +1683,9 @@ else if (matchDomain(es_grupo_vocento_domains)) { if (container_wall_exclusive) { let non_subscr_section = document.querySelector('[amp-access="result!=\'ALLOW_ACCESS\'"]'); removeDOMElement(container_wall_exclusive, non_subscr_section); - let subscr_section = document.querySelector('[amp-access="result=\'ALLOW_ACCESS\'"]'); - if (subscr_section) - subscr_section.removeAttribute('amp-access-hide'); + let subscr_section = document.querySelectorAll('[amp-access="result=\'ALLOW_ACCESS\'"][amp-access-hide]'); + for (let elem of subscr_section) + elem.removeAttribute('amp-access-hide'); } //lavozdigital.es let paywall = document.querySelector('span[subscriptions-section="content"]'); diff --git a/manifest.json b/manifest.json index 361c6a6..2ee1889 100755 --- a/manifest.json +++ b/manifest.json @@ -469,5 +469,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.1.0.3" + "version": "2.1.0.4" } \ No newline at end of file