Skip to content

Commit 0a1c763

Browse files
authored
Merge pull request #12 from festoney8/dev
merge dev to main
2 parents 42b58a3 + 6a55cc5 commit 0a1c763

File tree

5 files changed

+57
-21
lines changed

5 files changed

+57
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
## 2.2.2
44

55
- 新增:顶栏 稍后再看相关选项
6-
- 新增:评论区规则、净化分享适配稍后再看页面、收藏夹页面
6+
- 新增:评论区规则、净化分享、视频列表、直角化 适配playlist(稍后再看/收藏夹)
77
- 优化:首页 隐藏下载桌面端弹窗 改为默认开启
88
- 优化:全屏下隐藏弹幕输入框,完整展示章节名
99
- 优化:用户开启开关时执行功能函数
10+
- 优化:功能名称
1011
- 修复:视频列表增加高度
1112

1213
## 2.2.1

src/pages/bangumi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ const bangumiSimpleShare = () => {
5151
if (location.href.startsWith('https://www.bilibili.com/bangumi/play/')) {
5252
// 基本功能part, basicItems
5353
{
54-
// 净化分享功能, 默认开启
54+
// 净化分享功能, 默认开启, 关闭功能需刷新
5555
basicItems.push(
5656
new NormalItem(
5757
'video-page-simple-share',
58-
'净化分享功能 (需刷新)',
58+
'净化分享功能',
5959
true,
6060
bangumiSimpleShare,
6161
false,
@@ -450,7 +450,7 @@ if (location.href.startsWith('https://www.bilibili.com/bangumi/play/')) {
450450
}
451451
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,
452452
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center {
453-
padding: 0 0 !important;
453+
padding: 0 15px !important;
454454
}
455455
/* 弹幕开关按钮贴紧左侧, 有章节列表时增大列表宽度 */
456456
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,

src/pages/common.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ if (host === 't.bilibili.com') {
187187
.van-popover,
188188
.v-popover,
189189
.pic-box,
190+
.action-list-container,
191+
.actionlist-item-inner .main .cover,
192+
.recommend-video-card .card-box .pic-box,
193+
.recommend-video-card .card-box .pic-box .rcmd-cover .rcmd-cover-img .b-img__inner img,
194+
.actionlist-item-inner .main .cover .cover-img .b-img__inner img,
190195
.card-box .pic-box .pic,
191196
.bui-collapse-header,
192197
.base-video-sections-v1,
@@ -339,9 +344,9 @@ if (host === 't.bilibili.com') {
339344
),
340345
)
341346

342-
// URL参数净化, 在urlchange时需重载, 默认开启
347+
// URL参数净化, 在urlchange时需重载, 默认开启, 关闭功能需刷新
343348
// 以前会出现URL缺少参数导致充电窗口载入失败报错NaN的bug, 现无法复现, 猜测已修复
344-
basicItems.push(new NormalItem('url-cleaner', 'URL参数净化 (需刷新)', true, cleanURL, true, null))
349+
basicItems.push(new NormalItem('url-cleaner', 'URL参数净化', true, cleanURL, true, null))
345350
}
346351
commonGroupList.push(new Group('common-basic', '全站通用项 基本功能', basicItems))
347352
// 通用header净化,直播页除外

src/pages/homepage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ if (location.href.startsWith('https://www.bilibili.com/') && ['/index.html', '/'
452452
),
453453
)
454454
}
455-
homepageGroupList.push(new Group('homepage-sidebar', '页面右下角', sidebarItems))
455+
homepageGroupList.push(new Group('homepage-sidebar', '页面右下角 小按钮', sidebarItems))
456456

457457
// bilibili-app-recommend插件part, biliAppRcmdItems
458458
{

src/pages/video.ts

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ if (
117117
) {
118118
// 基本功能part, basicItems
119119
{
120-
// BV号转AV号, 在url变化时需重载
121-
basicItems.push(new NormalItem('video-page-bv2av', 'BV号转AV号 (需刷新)', false, bv2av, true, null))
122-
// 净化分享, 默认开启
120+
// BV号转AV号, 在url变化时需重载, 关闭功能需刷新
121+
basicItems.push(new NormalItem('video-page-bv2av', 'BV号转AV号', false, bv2av, true, null))
122+
// 净化分享, 默认开启, 关闭功能需刷新
123123
basicItems.push(
124124
new NormalItem(
125125
'video-page-simple-share',
126-
'净化分享功能 (需刷新)',
126+
'净化分享功能',
127127
true,
128128
simpleShare,
129129
false,
@@ -695,7 +695,7 @@ if (
695695
}
696696
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,
697697
.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center {
698-
padding: 0 0 !important;
698+
padding: 0 15px !important;
699699
}
700700
/* 弹幕开关按钮贴紧左侧, 有章节列表时增大列表宽度 */
701701
.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,
@@ -997,15 +997,17 @@ if (
997997
`#multi_page .next-button {display: none !important;}`,
998998
),
999999
)
1000-
// 隐藏 视频时长
1000+
// 隐藏 相关视频 视频时长
10011001
rightItems.push(
10021002
new NormalItem(
10031003
'video-page-hide-right-container-duration',
10041004
'隐藏 相关视频 视频时长',
10051005
false,
10061006
undefined,
10071007
false,
1008-
`#reco_list .duration {display: none !important;}`,
1008+
`#reco_list .duration {display: none !important;}
1009+
/* 适配watchlater, favlist */
1010+
.recommend-list-container .duration {display: none !important;}`,
10091011
),
10101012
)
10111013
// 隐藏 相关视频 稍后再看按钮
@@ -1016,7 +1018,9 @@ if (
10161018
false,
10171019
undefined,
10181020
false,
1019-
`#reco_list .watch-later-video {display: none !important;}`,
1021+
`#reco_list .watch-later-video {display: none !important;}
1022+
/* 适配watchlater, favlist */
1023+
.recommend-list-container .watch-later-video {display: none !important;}`,
10201024
),
10211025
)
10221026
// 隐藏 相关视频 UP主
@@ -1034,6 +1038,15 @@ if (
10341038
display: flex;
10351039
flex-direction: column;
10361040
justify-content: space-between;
1041+
}
1042+
/* 适配watchlater, favlist */
1043+
.recommend-list-container .info .upname {
1044+
display: none !important;
1045+
}
1046+
.recommend-list-container .info {
1047+
display: flex;
1048+
flex-direction: column;
1049+
justify-content: space-between;
10371050
}`,
10381051
),
10391052
)
@@ -1052,18 +1065,29 @@ if (
10521065
display: flex;
10531066
flex-direction: column;
10541067
justify-content: space-between;
1068+
}
1069+
/* 适配watchlater, favlist */
1070+
.recommend-list-container .info .playinfo {
1071+
display: none !important;
1072+
}
1073+
.recommend-list-container .info {
1074+
display: flex;
1075+
flex-direction: column;
1076+
justify-content: space-between;
10551077
}`,
10561078
),
10571079
)
1058-
// 隐藏 全部相关视频
1080+
// 隐藏 相关视频 全部列表
10591081
rightItems.push(
10601082
new NormalItem(
10611083
'video-page-hide-right-container-reco-list-rec-list',
1062-
'隐藏 全部相关视频',
1084+
'隐藏 相关视频 全部列表',
10631085
false,
10641086
undefined,
10651087
false,
1066-
`#reco_list .rec-list {display: none !important;}`,
1088+
`#reco_list .rec-list {display: none !important;}
1089+
/* 适配watchlater, favlist */
1090+
.recommend-list-container {display: none !important;}`,
10671091
),
10681092
)
10691093
// 隐藏 活动banner, 默认开启
@@ -1458,7 +1482,9 @@ if (
14581482
false,
14591483
undefined,
14601484
false,
1461-
`.fixed-sidenav-storage .mini-player-window {display: none !important;}`,
1485+
`.fixed-sidenav-storage .mini-player-window {display: none !important;}
1486+
/* 适配watchlater, favlist */
1487+
.float-nav-exp .nav-menu .item.mini {display: none !important;}`,
14621488
),
14631489
)
14641490
// 隐藏 客服, 默认开启
@@ -1469,7 +1495,9 @@ if (
14691495
true,
14701496
undefined,
14711497
false,
1472-
`.fixed-sidenav-storage .customer-service {display: none !important;}`,
1498+
`.fixed-sidenav-storage .customer-service {display: none !important;}
1499+
/* 适配watchlater, favlist */
1500+
.float-nav-exp .nav-menu a:has(>.item.help) {display: none !important;}`,
14731501
),
14741502
)
14751503
// 隐藏 回顶部
@@ -1480,7 +1508,9 @@ if (
14801508
false,
14811509
undefined,
14821510
false,
1483-
`.fixed-sidenav-storage .back-to-top {display: none !important;}`,
1511+
`.fixed-sidenav-storage .back-to-top {display: none !important;}
1512+
/* 适配watchlater, favlist */
1513+
.float-nav-exp .nav-menu .item.backup {display: none !important;}`,
14841514
),
14851515
)
14861516
}

0 commit comments

Comments
 (0)