Skip to content

Commit

Permalink
update: video filter, popular layout css
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 29, 2024
1 parent a7c7493 commit ad5ac53
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- 新增:修复字体支持动态详情页
- 新增:直播页隐藏头像饰品
- 新增:隐藏视频清晰度
- 更新:收录更多AI机器人
- 优化:功能细节

Expand Down
2 changes: 2 additions & 0 deletions src/filters/videoFilter/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ if (isPageVideo() || isPagePlaylist()) {
const title = video.querySelector('.bpx-player-ending-related-item-title')?.textContent?.trim()
if (title && blacklistVideoTitle.has(title)) {
hideEle(video)
} else {
showEle(video)
}
})
clearInterval(endingInterval)
Expand Down
18 changes: 17 additions & 1 deletion src/rules/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,23 @@ if (isPagePopular()) {
'popular-layout-5-column',
'popular-layout-6-column',
],
itemCSS: `.cm-module {display: none !important;}`,
itemCSS: `
.cm-module {
display: none !important;
}
/* grid替代flex做双列布局,屏蔽视频后不产生空白 */
.video-list,
.popular-list .card-list,
.history-list .card-list {
display: grid !important;
grid-template-columns: auto auto;
}
.popular-list .card-list .video-card,
.video-list .video-card,
.history-list .card-list .video-card {
width: unset !important;
}
`,
defaultStatus: true,
}),
// 强制使用 4 列布局
Expand Down

0 comments on commit ad5ac53

Please sign in to comment.