Skip to content
Merged

7.2.8 #619

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [7.2.8] - 2026-5-9

### 修复

- 适配B站新直播间UI,修复【隐藏/显示控制面板】按钮不显示的问题

## [7.2.7] - 2026-4-23

### 修复
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ npm run dev
### 分支

- **master**: `master` 分支是发布分支,准备发版时会通过 Pull Request 将 `dev` 合并到 `master`,合并后会触发 GitHub Actions 构建并创建 Release。
- **dev**: `dev` 分支是开发分支日常开发请基于 `upstream/dev` 创建分支,发起 PR 时以主仓库的 `dev` 分支为合并目标
- **dev**: `dev` 分支是开发分支日常开发请基于 `upstream/dev` 创建独立的功能分支(不要直接在 fork 的 `master` 上改动),发起 PR 时记得把目标分支设置为 `dev`。

### 目录结构

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bilibili-live-tasks-helper",
"private": true,
"version": "7.2.7",
"version": "7.2.8",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
16 changes: 11 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,22 @@ const throttleButtonOnClick = _.throttle(buttonOnClick, 300)
const livePlayer = dq('.player-section')
if (livePlayer) {
updatePosition()
// 查找播放器上面的 header
// 节点#player-ctnr在初始html中出现
waitForElement(dq('#player-ctnr')!, '.left-ctnr.left-header-area', 10e3)
.then((playerHeaderLeft) => {
// 节点 #player-ctnr 在初始 html 中出现
waitForElement(dq('#player-ctnr')!, '.header-info-ctnr .normal-row-ctnr', 10e3)
.then((normalRowCtnr) => {
// 创建显示/隐藏控制面板按钮
button = dce('button')
button.setAttribute('class', 'blth-btn')
button.onclick = throttleButtonOnClick
button.innerText = uiStore.isShowPanelButtonText
playerHeaderLeft.append(button)
// 把按钮插入到 normal-row-ctnr 的第一个子节点后面
const firstChild = normalRowCtnr.firstChild
if (firstChild) {
firstChild.after(button)
} else {
logger.warn('.normal-row-ctnr 没有子节点', normalRowCtnr)
normalRowCtnr.appendChild(button)
}
if (!isSelfTopFrame()) {
// 在特殊直播间,脚本所在的目标 frame 只占屏幕中间一块地方
// 如果焦点不在里面,快捷键会失效
Expand Down
Loading