Skip to content

Commit

Permalink
update: video page hide info
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Mar 29, 2024
1 parent 2fb045a commit df73e8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.3.2

- 更新:播放页隐藏视频信息,适配网页变动

## 3.3.1

- 修复:黑名单编辑器bug
Expand Down
10 changes: 5 additions & 5 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,32 +269,32 @@ if (isPageVideo() || isPagePlaylist()) {
new CheckboxItem({
itemID: 'video-page-hide-video-info-danmaku-count',
description: '隐藏 弹幕数',
itemCSS: `.video-info-detail .dm {display: none !important;}`,
itemCSS: `:is(.video-info-detail, .video-info-meta) .dm {display: none !important;}`,
}),
// 隐藏 发布日期
new CheckboxItem({
itemID: 'video-page-hide-video-info-pubdate',
description: '隐藏 发布日期',
itemCSS: `.video-info-detail .pubdate-ip {display: none !important;}`,
itemCSS: `:is(.video-info-detail, .video-info-meta) .pubdate-ip {display: none !important;}`,
}),
// 隐藏 版权声明
new CheckboxItem({
itemID: 'video-page-hide-video-info-copyright',
description: '隐藏 版权声明',
itemCSS: `.video-info-detail .copyright {display: none !important;}`,
itemCSS: `:is(.video-info-detail, .video-info-meta) .copyright {display: none !important;}`,
}),
// 隐藏 视频荣誉(排行榜/每周必看)
new CheckboxItem({
itemID: 'video-page-hide-video-info-honor',
description: '隐藏 视频荣誉(排行榜/每周必看)',
itemCSS: `.video-info-detail .honor-rank, .video-info-detail .honor-weekly {display: none !important;}`,
itemCSS: `:is(.video-info-detail, .video-info-meta) .honor-rank, .v:is(ideo-info-detail, ideo-info-meta) .honor-weekly {display: none !important;}`,
}),
// 隐藏 温馨提示(饮酒/危险/AI生成), 默认开启
new CheckboxItem({
itemID: 'video-page-hide-video-info-argue',
description: '隐藏 温馨提示(饮酒/危险/AI生成)',
defaultStatus: true,
itemCSS: `.video-info-detail .argue, .video-info-detail .video-argue {display: none !important;}`,
itemCSS: `:is(.video-info-detail, .video-info-meta) .argue, .v:is(ideo-info-detail, ideo-info-meta) .video-argue {display: none !important;}`,
}),
]
videoGroupList.push(new Group('video-info', '视频信息', infoItems))
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: '3.3.1',
version: '3.3.2',
description:
'净化 B站/哔哩哔哩 网页元素,去广告,BV号转AV号,播放器净化,过滤视频,过滤评论,提供300+项功能,定制自己的B站页面',
author: 'festoney8',
Expand Down

0 comments on commit df73e8b

Please sign in to comment.