Skip to content

Commit

Permalink
feat: video page hide vote
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jan 24, 2024
1 parent bb2a6d5 commit 3c414ae
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## 3.0.3

- 新增:视频播放页 交换视频信息和播放器的顺序
- 新增:播放页 隐藏投票栏、隐藏评论区用户投票状态
- 新增:播放页 交换视频信息和播放器的顺序

## 3.0.2

Expand Down
22 changes: 22 additions & 0 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,17 @@ if (isPageVideo() || isPagePlaylist()) {
`#bannerAd {display: none !important;}`,
),
)
// 隐藏 投票
toolbarItems.push(
new CheckboxItem(
'video-page-hide-top-vote-card',
'隐藏 投票',
false,
undefined,
false,
`.comment-container .top-vote-card {display: none !important;}`,
),
)
}
videoGroupList.push(new Group('video-toolbar', '视频下方 工具/简介/Tag', toolbarItems))

Expand Down Expand Up @@ -1345,6 +1356,17 @@ if (isPageVideo() || isPagePlaylist()) {
.comment-container .bili-avatar-icon {display: none !important;}`,
),
)
// 隐藏 用户投票 (红方/蓝方)
commentItems.push(
new CheckboxItem(
'video-page-hide-vote-info',
'隐藏 用户投票 (红方/蓝方)',
false,
undefined,
false,
`.comment-container .vote-info {display: none !important;}`,
),
)
// 隐藏 评论内容下tag(UP觉得很赞)
commentItems.push(
new CheckboxItem(
Expand Down

0 comments on commit 3c414ae

Please sign in to comment.