From 7024deab81bc58e275e9423fa7bbca61db6d2023 Mon Sep 17 00:00:00 2001 From: PathGao <42336971+PathGao@users.noreply.github.com> Date: Thu, 19 Nov 2026 02:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=203.5.x=20=E6=97=A7=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=20boc-content-superseded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注释写着 3.6 后删除,现在是 3.8.3。全仓没有地方再监听它。 --- extension/content.js | 2 -- extension/naming.selftest.js | 1 - 2 files changed, 3 deletions(-) diff --git a/extension/content.js b/extension/content.js index c83c7621..ca5bcfd3 100644 --- a/extension/content.js +++ b/extension/content.js @@ -356,8 +356,6 @@ const readerStepper = (settingKey) => READER_STEPPERS.find((stepper) => stepper. // An extension reload or update leaves the previous copy running in its own isolated world with a // dead chrome.runtime. Ask it to stand down; v2.0.0 and older can't and still hold their root. document.dispatchEvent(new Event("mdg-content-superseded")); -// 3.5.x and older listen for the name from before the rename. Remove after 3.6. -document.dispatchEvent(new Event("boc-content-superseded")); const predecessorStillRunning = Boolean(document.getElementById(ids.root)); document.addEventListener("mdg-content-superseded", standDown, { once: true }); // What a superseded copy stops (standDown): the page listeners, observers and the URL watcher hang off this signal. diff --git a/extension/naming.selftest.js b/extension/naming.selftest.js index 79323bb3..bcee6994 100644 --- a/extension/naming.selftest.js +++ b/extension/naming.selftest.js @@ -11,7 +11,6 @@ const ALLOWED = [ ["extension/limits.js", "boc_"], // the migration's old key prefix ["extension/limits.selftest.js", "boc_"], // the migration test's old keys ["extension/history/history.selftest.js", "boc_"], // 摘读记录 runs the migration on load - ["extension/content.js", "boc-content-superseded"], // a 3.5.x copy in an open tab stands down on it; remove after 3.6 ["*", "bnjihpbocpimaipifanfkjjpfdbigggd"] // the Chrome Web Store extension id ]; const TEXT = /\.(js|mjs|css|html|json|md|svg|txt|py|sh|yml)$/;