From a419123ca4e299fe0f94d0751b00ee4a54b8de88 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 28 Oct 2023 09:26:19 +0200 Subject: [PATCH] Fix Albuquerque Journal (css) --- changelog.txt | 1 + contentScript.js | 2 +- sites.js | 3 ++- sites_updated.json | 7 +++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9966551..47145f7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Post-release Remove CodeSports.com.au (fix obsolete) Remove Hln.be (fix obsolete) Remove VosgesMatin.fr (fix obsolete) +Fix Albuquerque Journal (css) Fix Apollo Magazine Fix Barron's (amp-redirect) Fix Faz.net (json) diff --git a/contentScript.js b/contentScript.js index 74b63d1..d5a4a24 100644 --- a/contentScript.js +++ b/contentScript.js @@ -5453,7 +5453,7 @@ else if (matchDomain(usa_gannett_domains) || document.querySelector('img[srcset^ window.location.href = decodeURIComponent(window.location.href.split('?return=')[1]); } -else if ((domain = matchDomain(usa_lee_ent_domains)) || matchDomain(ca_torstar_domains) || document.querySelector('script[src*=".townnews.com/"][src*="/tncms/"]')) { +else if ((domain = matchDomain(usa_lee_ent_domains)) || matchDomain(ca_torstar_domains.concat(['abqjournal.com'])) || document.querySelector('script[src*=".townnews.com/"][src*="/tncms/"]')) { if (window.location.pathname.endsWith('.amp.html')) { amp_unhide_access_hide('="hasAccess"', '="NOT hasAccess"', 'amp-ad, amp-embed, .amp-ads-container'); let elem_hidden = document.querySelectorAll('html[class], body[class]'); diff --git a/sites.js b/sites.js index add9efd..25f3648 100644 --- a/sites.js +++ b/sites.js @@ -27,7 +27,8 @@ var defaultSites = { "Albuquerque Journal": { domain: "abqjournal.com", allow_cookies: 1, - block_regex: /\.abqjournal\.com\/.+\/abq-pw-manager\.js/ + block_regex: /\.abqjournal\.com\/.+\/tncms\/api\/access\.js/, + cs_dompurify: 1 }, "Algemeen Dagblad (+ regional; link to archive.is)": { domain: "###_nl_dpg_adr", diff --git a/sites_updated.json b/sites_updated.json index 00ea2c5..f3fc190 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -1,4 +1,11 @@ { + "Albuquerque Journal": { + "domain": "abqjournal.com", + "allow_cookies": 1, + "block_regex": "\\.abqjournal\\.com\\/.+\\/tncms\\/api\\/access\\.js", + "cs_dompurify": 1, + "upd_version": "3.3.9.8" + }, "Amplitude": { "domain": "amplitude.com", "allow_cookies": 1,