Skip to content

Commit

Permalink
fix: video page info item
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Oct 13, 2024
1 parent cd969f7 commit 6cd56c7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 4.0.3

- 修复:播放页 视频信息相关功能

## 4.0.2

- 更新:播放页 相关视频功能 适配页面变化
Expand Down
3 changes: 2 additions & 1 deletion src/modules/rules/search/groups/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ html[hide-search-page-search-sticky-header] {

// 隐藏 搜索结果中的广告
html[hide-search-page-ad] {
.video-list.row > div:has([href*='cm.bilibili.com']) {
.video-list.row
> div:has([href*='cm.bilibili.com'], .bili-video-card__info--ad, .bili-video-card__info--ad-creative) {
display: none !important;
}
}
Expand Down
59 changes: 39 additions & 20 deletions src/modules/rules/video/groups/info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,69 @@ html[video-page-unfold-video-info-title] {
height: fit-content !important;
margin-bottom: 12px;
}
.video-info-container .video-info-title-inner-overflow .video-title {
margin-right: unset !important;
text-wrap: wrap !important;
}
.video-info-container .video-info-title-inner .video-title .video-title-href {
text-wrap: wrap !important;
}
.video-info-container .show-more {
display: none !important;
.video-info-container {
.video-info-title-inner-overflow .video-title {
margin-right: unset !important;
text-wrap: wrap !important;
}
.video-info-title-inner .video-title .video-title-href {
text-wrap: wrap !important;
.show-more {
display: none !important;
}
}
}
}

// 隐藏 弹幕数
html[video-page-hide-video-info-danmaku-count] {
:is(.video-info-detail, .video-info-meta) .dm {
display: none !important;
.video-info-detail,
.video-info-meta {
.dm {
display: none !important;
}
}
}

// 隐藏 发布日期
html[video-page-hide-video-info-pubdate] {
:is(.video-info-detail, .video-info-meta) .pubdate-ip {
display: none !important;
.video-info-detail,
.video-info-meta {
.pubdate-ip {
display: none !important;
}
}
}

// 隐藏 版权声明
html[video-page-hide-video-info-copyright] {
:is(.video-info-detail, .video-info-meta) .copyright {
display: none !important;
.video-info-detail,
.video-info-meta {
.copyright {
display: none !important;
}
}
}

// 隐藏 视频荣誉(排行榜/每周必看)
html[video-page-hide-video-info-honor] {
:is(.video-info-detail, .video-info-meta) .honor-rank,
.v:is(ideo-info-detail, ideo-info-meta) .honor-weekly {
display: none !important;
.video-info-detail,
.video-info-meta {
.honor-rank,
.honor-weekly,
.honor-history {
display: none !important;
}
}
}

// 隐藏 温馨提示(饮酒/危险/AI生成)
html[video-page-hide-video-info-argue] {
:is(.video-info-detail, .video-info-meta) :is(.argue, .video-argue) {
display: none !important;
.video-info-detail,
.video-info-meta {
.argue,
.video-argue {
display: none !important;
}
}
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
userscript: {
name: 'bilibili 页面净化大师',
namespace: 'http://tampermonkey.net/',
version: '4.0.2',
version: '4.0.3',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit 6cd56c7

Please sign in to comment.