Skip to content

Commit

Permalink
feat: live page header hide follow,rechange,download
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Apr 24, 2024
1 parent b2f5af6 commit 2a23d0f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- 优化:播放页视频信息置底
- 修复:视频切换分P后评论过滤失效bug
- 新增:直播页顶栏隐藏关注、电池、客户端

## 3.4.6

Expand Down
26 changes: 22 additions & 4 deletions src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,27 +614,45 @@ if (isPageLiveHome() || isPageLiveRoom()) {
new CheckboxItem({
itemID: 'live-page-header-dynamic',
description: '隐藏 动态',
itemCSS: `#right-part .shortcuts-ctnr .shortcut-item:has(.link-panel-ctnr) {display: none !important;}`,
itemCSS: `#right-part .shortcut-item:has(.link-panel-ctnr) {display: none !important;}`,
}),
// 隐藏 签到
new CheckboxItem({
itemID: 'live-page-header-checkin',
description: '隐藏 签到',
itemCSS: `#right-part .shortcuts-ctnr .shortcut-item:has(.calendar-checkin) {display: none !important;}`,
itemCSS: `#right-part .shortcut-item:has(.calendar-checkin) {display: none !important;}`,
}),
// 隐藏 幻星互动, 默认开启
new CheckboxItem({
itemID: 'live-page-header-interact',
description: '隐藏 幻星互动',
defaultStatus: true,
itemCSS: `#right-part .shortcuts-ctnr .shortcut-item:has(.fanbox-panel-ctnr) {display: none !important;}`,
itemCSS: `#right-part .shortcut-item:has(.fanbox-panel-ctnr) {display: none !important;}`,
}),
// 隐藏 关注
new CheckboxItem({
itemID: 'live-page-header-follow-panel',
description: '隐藏 关注',
itemCSS: `#right-part .shortcut-item:has(.follow-panel-set) {display: none;}`,
}),
// 隐藏 购买电池
new CheckboxItem({
itemID: 'live-page-header-recharge',
description: '隐藏 购买电池',
itemCSS: `#right-part .shortcut-item:has(.item-icon-recharge) {display: none;}`,
}),
// 隐藏 下载客户端
new CheckboxItem({
itemID: 'live-page-header-bili-download-panel',
description: '隐藏 下载客户端',
itemCSS: `#right-part .shortcut-item:has(.bili-download-panel) {visibility: hidden;}`,
}),
// 隐藏 我要开播, 默认开启
new CheckboxItem({
itemID: 'live-page-header-go-live',
description: '隐藏 我要开播',
defaultStatus: true,
itemCSS: `#right-part .shortcuts-ctnr .shortcut-item:has(.download-panel-ctnr) {visibility: hidden;}`,
itemCSS: `#right-part .shortcut-item:has(.download-panel-ctnr) {visibility: hidden;}`,
}),
]
liveGroupList.push(new Group('live-header-right', '顶栏 右侧', headerRightItems))
Expand Down

0 comments on commit 2a23d0f

Please sign in to comment.