Skip to content

Commit

Permalink
optimize: fullscreen hide danmaku input
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Dec 31, 2023
1 parent d7f4b50 commit 9da906d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
### 注意事项

- 给 UP 主充电时,若出现 **充电窗口载入失败 (报错NaN)**,请关闭 **通用项「URL参数净化」** 功能,刷新页面再充电
- **「版权视频播放页」大部分功能与「普通播放页」一致且互相同步,小部分功能为该页面独有,已用 "★" 重点标出**
- **「版权视频播放页」大部分功能与「播放页」一致且互相同步,小部分独有功能已用 "★" 重点标出**
- **已知Bug:** 在打开「版权作品播放页」时,小概率出现顶栏未净化的情况。已通过打补丁的方式暂时补救,副作用为打开页面数秒后顶栏净化规则才生效

## 浏览器适配
Expand Down
21 changes: 0 additions & 21 deletions src/core/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,3 @@ export class NormalItem implements IItem {
}
}
}

// export class SeparatorItem implements IItem {
// constructor() {}
// /**
// * 向item list中添加分隔符<hr>, 用于划分功能组别
// * @param groupID 由调用SeparatorItem的上级Group提供
// */
// insertItem(groupID: string) {
// try {
// const e = document.createElement('hr')
// const itemGroupList = document.querySelector(`#${groupID} .bili-cleaner-item-list`) as HTMLFormElement
// if (itemGroupList) {
// itemGroupList.appendChild(e)
// debug(`insertItem separator OK`)
// }
// } catch (err) {
// error(`insertItem separator err`)
// error(err)
// }
// }
// }
5 changes: 5 additions & 0 deletions src/pages/bangumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ if (location.href.startsWith('https://www.bilibili.com/bangumi/play/')) {
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center {
padding: 0 0 !important;
}
/* 弹幕开关按钮贴紧左侧 */
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-left {
min-width: unset !important;
}`,
),
)
Expand Down
5 changes: 5 additions & 0 deletions src/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ if (location.href.startsWith('https://www.bilibili.com/video/')) {
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center {
padding: 0 0 !important;
}
/* 弹幕开关按钮贴紧左侧 */
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-left {
min-width: unset !important;
}`,
),
)
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
userscript: {
name: 'bilibili 页面净化大师',
namespace: 'http://tampermonkey.net/',
version: '2.2.1',
version: '2.2.2',
description:
'净化 B站/哔哩哔哩 页面内各种元素,去广告,BV号转AV号,净化播放器,提供300+项功能,定制自己的B站页面',
author: 'festoney8',
Expand Down

0 comments on commit 9da906d

Please sign in to comment.