From cce4b2b4992c121624c15bd45ead49ff49186b05 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 26 Jul 2023 17:49:01 +0200 Subject: [PATCH] Fix Star Tribune (mobile) --- changelog.txt | 1 + contentScript.js | 2 +- custom/manifest.json | 2 +- custom/sites_custom.json | 11 +++++--- manifest.json | 2 +- sites_updated.json | 58 +--------------------------------------- 6 files changed, 12 insertions(+), 64 deletions(-) diff --git a/changelog.txt b/changelog.txt index 57b268fb..74d9a976 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Post-release Add Ruhr Nachrichten (+ Media Group Westfalen; opt-in to custom sites) Fix El Diario Vasco (mobile amp-redirect) Fix New Scientist (regwall) +Fix Star Tribune (mobile) Maintenance updated sites (clear) * v3.2.6.0 (2023-07-23) diff --git a/contentScript.js b/contentScript.js index 5e7d2eab..277815eb 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4590,7 +4590,7 @@ else if (matchDomain('startribune.com')) { let modal = document.querySelector('body.ReactModal__Body--open'); if (modal) modal.classList.remove('ReactModal__Body--open'); - let banner = document.querySelector('div#meterContent'); + let banner = document.querySelector('div#meterContent, div[class*="Limit-container-"]'); let banner_modal; if (banner) banner_modal = banner.closest('div.ReactModalPortal'); diff --git a/custom/manifest.json b/custom/manifest.json index 077f38de..83d9b89f 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.2.6.2" + "version": "3.2.6.3" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index fc967746..ca55c2dd 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -107,10 +107,8 @@ }, "Diariodenavarra.es": { "allow_cookies": 1, - "amp_redirect": "div#paywallMessage", - "amp_unhide": 1, - "cs_code": "[{\"cond\":\"section.txt\",\"rm_elem\":1}]", - "domain": "diariodenavarra.es" + "domain": "diariodenavarra.es", + "ld_json": "div#paywall_message|div.free-html" }, "Doorbraak.be": { "allow_cookies": 1, @@ -468,6 +466,11 @@ "The-past.com": { "domain": "the-past.com" }, + "The42.ie": { + "allow_cookies": 1, + "block_regex": "\\.piano\\.io", + "domain": "the42.ie" + }, "Thecaterer.com": { "allow_cookies": 1, "cs_code": "[{\"cond\":\".locked-content\",\"rm_attrib\":\"class\"}]", diff --git a/manifest.json b/manifest.json index cb6f328c..3c32ad1b 100644 --- a/manifest.json +++ b/manifest.json @@ -769,5 +769,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.2.6.2" + "version": "3.2.6.3" } diff --git a/sites_updated.json b/sites_updated.json index 7dd92132..274b0c11 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -59,16 +59,6 @@ ], "upd_version": "3.2.5.9" }, - "Delish": { - "domain": "delish.com", - "allow_cookies": 1, - "block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)" - }, - "Elle Decor": { - "domain": "elledecor.com", - "allow_cookies": 1, - "block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)" - }, "Grupo Abril": { "domain": "abril.com.br", "allow_cookies": 1, @@ -81,34 +71,6 @@ "useragent": "facebookbot", "upd_version": "3.0.8.3" }, - "Harper's Bazaar": { - "domain": "harpersbazaar.com", - "allow_cookies": 1, - "block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)" - }, - "Hearst Communications magazines": { - "domain": "###_usa_hearst_comm_mag", - "group": [ - "bicycling.com", - "cosmopolitan.com", - "countryliving.com", - "elle.com", - "esquire.com", - "goodhousekeeping.com", - "hollywoodreporter.com", - "housebeautiful.com", - "menshealth.com", - "popularmechanics.com", - "prevention.com", - "roadandtrack.com", - "runnersworld.com", - "townandcountrymag.com", - "womenshealthmag.com" - ], - "allow_cookies": 1, - "block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)", - "upd_version": "3.2.3.2" - }, "New Scientist": { "domain": "newscientist.com", "allow_cookies": 1, @@ -122,11 +84,6 @@ "ld_json": "div.offerlist-wrapper|div.article-body|1", "upd_version": "3.2.6.0" }, - "Oprah Daily": { - "domain": "oprahdaily.com", - "allow_cookies": 1, - "block_regex": "(\\.com\\/_assets\\/jam\\/journey-data\\.js|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)" - }, "Record.pt": { "domain": "record.pt", "allow_cookies": 1, @@ -134,12 +91,6 @@ "amp_unhide": 1, "upd_version": "3.2.4.2" }, - "Rugbyrama.fr": { - "domain": "rugbyrama.fr", - "allow_cookies": 1, - "ld_json": "div.paywall|div.article-full__body-content", - "upd_version": "3.2.3.3" - }, "Sábado (not video)": { "domain": "sabado.pt", "allow_cookies": 1, @@ -160,7 +111,7 @@ "domain": "startribune.com", "remove_cookies_select_drop": ["client_id"], "cs_code": "[{\"cond\":\"div.ReactModalPortal\", \"rm_elem\": 1}, {\"cond\":\"body.ReactModal__Body--open\", \"rm_class\": \"ReactModal__Body--open\"}]", - "upd_version": "3.2.5.8" + "upd_version": "3.2.6.3" }, "Stuttgarter Nachrichten": { "domain": "stuttgarter-nachrichten.de", @@ -205,12 +156,5 @@ "block_regex": "(\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)", "useragent": "googlebot", "upd_version": "3.1.4.0" - }, - "UOL.com.br": { - "domain": "uol.com.br", - "block_regex": "(paywall\\.folha\\.uol\\.com\\.br\\/|\\.crusoe\\.com\\.br\\/assets\\/js\\/swg-wallcontent-crusoe\\.js|\\.(tinypass|matheranalytics)\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)", - "remove_cookies_select_drop": ["crs_subscriber"], - "useragent": "googlebot", - "upd_version": "3.2.3.6" } }