From de3d3a48f065b1c84aa870c21290092d6ae5785c Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 26 Dec 2022 21:10:18 +0100 Subject: [PATCH] Fix New York Magazine sites (timing cookies) --- background.js | 2 +- changelog.txt | 1 + manifest.json | 2 +- sites.js | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/background.js b/background.js index 86e609a..eccd70e 100644 --- a/background.js +++ b/background.js @@ -838,7 +838,7 @@ if (typeof browser !== 'object') { ext_api.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { let tab_status = changeInfo.status; - if (/^http/.test(tab.url) && ((tab_status && tab_status === 'complete') || (!tab_status && changeInfo.url))) { + if (/^http/.test(tab.url) && ((tab_status && tab_status === 'complete') || (changeInfo.url))) { if (matchUrlDomain(enabledSites, tab.url)) { runOnTab(tab); } diff --git a/changelog.txt b/changelog.txt index 0c0befb..c371c4e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,7 @@ Add TheVillage.ru Add Wiwo.de Add Wonderzine (ru) Remove Dvhn.nl & Mediahuis Belgie (fix obsolete) +Fix New York Magazine sites (timing cookies) Update block general paywall script (Axate.io) Update custom sites (block_js_inline) Update custom sites (cs_code: remove/unhide in dom) diff --git a/manifest.json b/manifest.json index be2cda8..eff5bd4 100644 --- a/manifest.json +++ b/manifest.json @@ -717,5 +717,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.8.7" + "version": "2.9.8.8" } diff --git a/sites.js b/sites.js index 0da42c7..3188fb7 100644 --- a/sites.js +++ b/sites.js @@ -1349,8 +1349,7 @@ var defaultSites = { "thecut.com", "vulture.com" ], - remove_cookies_select_drop: ["nymcid", "first-nymcid"], - block_regex: /fosse\.nymag\.com\/fosse\/.+\/scripts\/.+\.js/ + remove_cookies_select_drop: ["nymcid", "first-nymcid"] }, "New Zealand Herald": { domain: "nzherald.co.nz",