Skip to content

B站页面的 UP 标签面板和打标签面板统一 - #443

Merged
PathGao merged 1 commit into
mainfrom
bili-tag-panel
Oct 30, 2026
Merged

PathGao merged 1 commit into
mainfrom
bili-tag-panel

Conversation

@PathGao

@PathGao PathGao commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

改了什么

B站 页面的「+ UP 标签」面板改成和打标签面板一样:筛选框在上,标签等宽三列,同样的配色和键盘(1–9 和 0、方向键、空格后数字算文字),超过 10 个常用的排前面。以前一行一个,没有筛选,标签多了不好找。

保留两处不同:点一下马上写入,因为 B站 页面可能随时跳转;底部一行去分拣台的链接和「只存在 MoonDigest 里,不改 B站」。

面板在封闭的 shadow DOM 里,用不了 tag-picker.js 和扩展页样式,所以 CSS 和键盘处理另写一份;行、编号、顺序和方向键的纯函数收进 tag-core.js 共用。

验证

  • node scripts/selftest.mjs,39 个自检通过。去掉修饰键判断后 badges 自检会失败。
  • Chrome 无头模式,临时配置加载这个分支,打开真实 B站 视频页 BV1GJ411x7h7,真实按键跑过:1 和 0 写入、方向键加回车、空格加数字新建、Esc 关闭,超过 10 个标签时常用的排前。
  • 没测到:标签满 50 个的提示、中文输入法、动态页和搜索页、窄 iframe、BewlyCat、窄位置下 420px 的效果,也没有在 ego 里用真实账号试过。

@PathGao
PathGao enabled auto-merge (squash) October 30, 2026 16:13
同样的筛选框、等宽三列、配色和数字键,点一下仍马上写入。行、编号、顺序和方向键的纯函数收进 tag-core.js。
@PathGao
PathGao merged commit 37bacef into main Oct 30, 2026
2 checks passed
@PathGao
PathGao deleted the bili-tag-panel branch October 30, 2026 16:20
@PathGao PathGao mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant