Skip to content

Commit

Permalink
feat: video page unfold title
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 1, 2024
1 parent bffcca3 commit 43c6046
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.6.4

- 新增:播放页展开完整视频标题

## 3.6.3

- 新增:修复字体支持动态详情页
Expand Down
23 changes: 23 additions & 0 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ if (isPageVideo() || isPagePlaylist()) {
.video-info-container {
height: auto !important;
padding-top: 16px !important;
/* 高权限消除展开标题的间距 */
margin-bottom: 0 !important;
}
`,
}),
Expand All @@ -267,6 +269,27 @@ if (isPageVideo() || isPagePlaylist()) {

// 视频信息
const infoItems = [
// 展开 完整视频标题
new CheckboxItem({
itemID: 'video-page-unfold-video-info-title',
description: '展开 完整视频标题(多行)',
itemCSS: `
.video-info-container:has(.show-more) {
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;
}
`,
}),
// 隐藏 弹幕数
new CheckboxItem({
itemID: 'video-page-hide-video-info-danmaku-count',
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.6.3',
version: '3.6.4',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit 43c6046

Please sign in to comment.