Skip to content

Commit

Permalink
feat: video page hide right container #121
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Aug 12, 2024
1 parent b01de87 commit 8cfb277
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
## 3.10.4

- 修复:番剧页 小窗播放器记录位置
- 新增:播放页 禁用弹幕云屏蔽灰测
- 优化:播放页 非全屏隐藏弹幕栏、播放器宽度调节
- 新增:播放页 禁用弹幕云屏蔽灰测
- 新增:播放页 隐藏右栏

## 3.10.3

Expand Down
17 changes: 13 additions & 4 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1392,10 +1392,10 @@ if (isPageVideo() || isPagePlaylist()) {
itemCSS: `#reco_list .next-play {display: none !important;}
#reco_list .rec-list {margin-top: 0 !important;}`,
}),
// 视频合集 增加合集列表高度, 默认开启
// 优化 视频合集列表高度, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-right-container-section-height',
description: '视频合集 增加合集列表高度',
description: '优化 视频合集列表高度',
defaultStatus: true,
itemCSS: `.base-video-sections-v1 .video-sections-content-list {height: fit-content !important; max-height: 350px !important;}
.video-sections-v1 .video-sections-content-list {height: fit-content !important; max-height: 350px !important;}`,
Expand Down Expand Up @@ -1507,10 +1507,10 @@ if (isPageVideo() || isPagePlaylist()) {
justify-content: space-between;
}`,
}),
// 隐藏 相关视频 全部列表
// 隐藏 全部相关视频
new CheckboxItem({
itemID: 'video-page-hide-right-container-reco-list-rec-list',
description: '隐藏 相关视频 全部列表',
description: '隐藏 全部相关视频',
itemCSS: `#reco_list .rec-list {display: none !important;}
#reco_list .rec-footer {display: none !important;}
/* 适配watchlater, favlist */
Expand Down Expand Up @@ -1550,6 +1550,15 @@ if (isPageVideo() || isPagePlaylist()) {
}
`,
}),
// 隐藏 整个右栏
new CheckboxItem({
itemID: 'video-page-hide-right-container',
description: '隐藏 整个右栏 (宽屏模式不适用)',
itemCSS: `
html:not([bili-cleaner-is-wide]) .right-container {
display: none !important;
}`,
}),
]
videoGroupList.push(new Group('video-right', '右侧 视频栏', rightItems))

Expand Down

0 comments on commit 8cfb277

Please sign in to comment.