Repository navigation
B站页面的 UP 标签面板和打标签面板统一 - #443
Merged
Merged
Conversation
PathGao
force-pushed
the
bili-tag-panel
branch
from
October 30, 2026 15:12
33f6493 to
9cb754c
Compare
PathGao
enabled auto-merge (squash)
October 30, 2026 16:13
同样的筛选框、等宽三列、配色和数字键,点一下仍马上写入。行、编号、顺序和方向键的纯函数收进 tag-core.js。
PathGao
force-pushed
the
bili-tag-panel
branch
from
October 30, 2026 16:16
9cb754c to
0fa9106
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
B站 页面的「+ UP 标签」面板改成和打标签面板一样:筛选框在上,标签等宽三列,同样的配色和键盘(1–9 和 0、方向键、空格后数字算文字),超过 10 个常用的排前面。以前一行一个,没有筛选,标签多了不好找。
保留两处不同:点一下马上写入,因为 B站 页面可能随时跳转;底部一行去分拣台的链接和「只存在 MoonDigest 里,不改 B站」。
面板在封闭的 shadow DOM 里,用不了 tag-picker.js 和扩展页样式,所以 CSS 和键盘处理另写一份;行、编号、顺序和方向键的纯函数收进 tag-core.js 共用。
验证
node scripts/selftest.mjs,39 个自检通过。去掉修饰键判断后 badges 自检会失败。