1 Commits
4 changed files with 16 additions and 2 deletions

No files matched your search

+7
View File
@@ -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
### 🔧 调整
+1 -1
View File
@@ -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": [
+4 -1
View File
@@ -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 @@
</style>
</head>
<body>
<header>B站评论助手</header>
<header>B站评论助手<span id="hdrVer" class="hdr-ver"></span></header>
<div id="licSec" style="padding:8px 12px;border-bottom:1px solid #eee;background:#fafbfc">
<div style="display:flex;align-items:flex-start;gap:6px">
+4
View File
@@ -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);