From 40f335331bf32ce523b4d90361ede5b16c906a47 Mon Sep 17 00:00:00 2001 From: jinghui Date: Wed, 21 Oct 2026 00:03:47 +0800 Subject: [PATCH] =?UTF-8?q?v1.10.5:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=97=81=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=EF=BC=88=E8=AF=BB=20manifest=EF=BC=8C=E4=B8=8D=E5=86=99?= =?UTF-8?q?=E6=AD=BB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ manifest.json | 2 +- sidepanel.html | 5 ++++- sidepanel.js | 4 ++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8542f6a..eb6e0a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ B站评论助手 版本历史。下载:https://dl.88531.cn/bili.html ·  --- +## v1.10.5 · 2026-10-20 + +### ✨ 新功能 +- 侧边栏顶部标题旁显示**当前版本号**(半透明白色胶囊,如 `B站评论助手 v1.10.5`),直接读 manifest,升级后自动跟着变、不用改代码 + +--- + ## v1.10.4 · 2026-10-20 ### 🔧 调整 diff --git a/manifest.json b/manifest.json index e218f4a..834a3d0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "B站评论助手", - "version": "1.10.4", + "version": "1.10.5", "description": "B站网页版关键词评论助手:按搜索关键词找视频,默认模拟真人(打开视频页、滚到评论区、逐字输入、点发布),也可快速API直发;支持下载当前页视频;带防重复记录、可中断执行与页面实时进度浮层。", "permissions": ["storage", "tabs", "scripting", "sidePanel", "downloads", "declarativeNetRequest", "alarms"], "host_permissions": [ diff --git a/sidepanel.html b/sidepanel.html index 9cadf79..1060009 100644 --- a/sidepanel.html +++ b/sidepanel.html @@ -6,6 +6,9 @@ * { box-sizing: border-box; margin: 0; padding: 0; } body { width: 100%; min-height: 100vh; font-family: "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; font-size: 13px; color: #222; } header { background: #00A1D6; color: #fff; padding: 10px 12px; font-weight: bold; font-size: 14px; } + /* 标题旁的版本号:读 manifest,不写死,升级后自动跟着变 */ + .hdr-ver { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; + background:rgba(255,255,255,.22); font-size:11px; font-weight:normal; vertical-align:middle; } .promo { display:flex; align-items:center; justify-content:space-between; gap:8px; background: linear-gradient(90deg,#00A1D6,#FB7299); color:#fff; padding: 8px 12px; font-size: 13px; } .promo a { color:#fff; font-weight:bold; text-decoration:underline; cursor:pointer; } @@ -51,7 +54,7 @@ -
B站评论助手
+
B站评论助手
diff --git a/sidepanel.js b/sidepanel.js index 04772b4..d44e038 100644 --- a/sidepanel.js +++ b/sidepanel.js @@ -618,6 +618,10 @@ function refreshCustomVisibility() { // ============ 初始化 ============ async function init() { + const hv = $("hdrVer"); + if (hv) { + try { hv.textContent = "v" + chrome.runtime.getManifest().version; } catch (e) { hv.textContent = ""; } + } let saved = {}; try { saved = (await chrome.storage.local.get("settings")).settings || {}; } catch (e) {} settings = Object.assign({}, DEFAULTS, saved);