Skip to content

Commit

Permalink
update: move hide watchlater button item to common #189
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jan 24, 2025
1 parent a4ebfa6 commit f7ea79b
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 101 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- 新增:活动播放页 支持播放器相关净化功能
- 新增:视频过滤 BV号过滤适配新版空间页
- 优化:iframe页面适配
- 更新:隐藏视频卡片稍后再看按钮 移入全站通用项
- 更新:评论过滤 适配新版空间页,移除旧版适配
- 更新:部分功能细节

Expand Down
7 changes: 0 additions & 7 deletions src/modules/rules/channel/groups/rcmd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,6 @@ html[channel-hide-danmaku-count] {
}
}

// 隐藏 稍后再看按钮
html[channel-hide-bili-watch-later] {
.bili-watch-later {
display: none !important;
}
}

// 优化 近期投稿栏目 视频行距
html[channel-feed-card-body-grid-gap] {
.feed-card-body {
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/channel/groups/rcmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ export const channelRcmdItems: Item[] = [
name: '隐藏 弹幕数',
defaultEnable: true,
},
{
type: 'switch',
id: 'channel-hide-bili-watch-later',
name: '隐藏 稍后再看按钮',
},
{
type: 'switch',
id: 'channel-feed-card-body-grid-gap',
Expand Down
35 changes: 35 additions & 0 deletions src/modules/rules/common/groups/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,41 @@ html[beauty-scrollbar] {
}
}

// 隐藏 视频卡片 稍后再看按钮
html[hide-watchlater-button] {
.bili-watch-later {
display: none !important;
}
.bili-dyn-card-video__mark {
display: none !important;
}

// 播放页
.right-container .watch-later-video {
display: none !important;
}
.recommend-list-container .watch-later-video {
display: none !important;
}

// 热门排行榜页
.rank-container .rank-item .van-watchlater,
.history-list .video-card .van-watchlater,
.history-list .video-card .watch-later,
.weekly-list .video-card .van-watchlater,
.weekly-list .video-card .watch-later,
.popular-list .video-card .van-watchlater,
.popular-list .video-card .watch-later {
display: none !important;
}

// 空间页
.i-watchlater,
.bili-card-watch-later {
display: none !important;
}
}

// 隐藏 页底footer
html[hide-footer] {
.footer.bili-footer,
Expand Down
5 changes: 5 additions & 0 deletions src/modules/rules/common/groups/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ export const commonBasicItems: Item[] = [
name: '美化页面滚动条',
defaultEnable: true,
},
{
type: 'switch',
id: 'hide-watchlater-button',
name: '隐藏 视频卡片 稍后再看按钮',
},
{
type: 'switch',
id: 'url-cleaner',
Expand Down
7 changes: 0 additions & 7 deletions src/modules/rules/dynamic/groups/centerDyn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ html[hide-dynamic-page-bili-dyn-dispute] {
}
}

// 隐藏 稍后再看按钮
html[hide-dynamic-page-bili-dyn-watchlater] {
.bili-dyn-card-video__mark {
display: none !important;
}
}

// 隐藏 官方话题Tag
html[hide-dynamic-page-bili-dyn-official-topic] {
.bili-dyn-content__orig__topic,
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/dynamic/groups/centerDyn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ export const dynamicCenterDynItems: Item[] = [
name: '隐藏 警告notice',
defaultEnable: true,
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-watchlater',
name: '隐藏 稍后再看按钮',
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-official-topic',
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/festival/groups/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ html[video-page-hide-bpx-player-bili-reserve] {
}
}

// 隐藏 视频链接 (稍后再看)
// 隐藏 视频链接
html[video-page-hide-bpx-player-bili-link] {
.bili-link,
.bili-danmaku-x-link {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/festival/groups/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const festivalPlayerItems: Item[] = [
{
type: 'switch',
id: 'video-page-hide-bpx-player-bili-link',
name: '隐藏 视频链接 (稍后再看)',
name: '隐藏 视频链接',
},
{
type: 'switch',
Expand Down
7 changes: 0 additions & 7 deletions src/modules/rules/homepage/groups/rcmd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ html[homepage-hide-bili-watch-later-tip] main {
}
}

// 隐藏 稍后再看按钮
html[homepage-hide-bili-watch-later] main {
.bili-watch-later {
display: none !important;
}
}

// 隐藏 视频预览中的弹幕
html[homepage-hide-inline-player-danmaku] main {
.bpx-player-row-dm-wrap,
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/homepage/groups/rcmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ export const homepageRcmdItems: Item[] = [
id: 'homepage-hide-bili-watch-later-tip',
name: '隐藏 稍后再看提示语',
},
{
type: 'switch',
id: 'homepage-hide-bili-watch-later',
name: '隐藏 稍后再看按钮',
},
{
type: 'switch',
id: 'homepage-hide-inline-player-danmaku',
Expand Down
13 changes: 0 additions & 13 deletions src/modules/rules/popular/groups/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,6 @@ html[popular-hide-tips] {
}
}

// 隐藏 稍后再看按钮
html[popular-hide-watchlater] {
.rank-container .rank-item .van-watchlater,
.history-list .video-card .van-watchlater,
.history-list .video-card .watch-later,
.weekly-list .video-card .van-watchlater,
.weekly-list .video-card .watch-later,
.popular-list .video-card .van-watchlater,
.popular-list .video-card .watch-later {
display: none !important;
}
}

// 隐藏 弹幕数
html[popular-hide-danmaku-count] {
.popular-list .video-stat .like-text,
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/popular/groups/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ export const popularBasicItems: Item[] = [
name: '隐藏 tips',
defaultEnable: true,
},
{
type: 'switch',
id: 'popular-hide-watchlater',
name: '隐藏 稍后再看按钮',
},
{
type: 'switch',
id: 'popular-hide-danmaku-count',
Expand Down
7 changes: 0 additions & 7 deletions src/modules/rules/search/groups/basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,3 @@ html[hide-search-page-date] {
display: none !important;
}
}

// 隐藏 稍后再看按钮
html[hide-search-page-bili-watch-later] {
.bili-video-card .bili-watch-later {
display: none !important;
}
}
5 changes: 0 additions & 5 deletions src/modules/rules/search/groups/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,4 @@ export const searchBasicItems: Item[] = [
id: 'hide-search-page-date',
name: '隐藏 视频日期',
},
{
type: 'switch',
id: 'hide-search-page-bili-watch-later',
name: '隐藏 稍后再看按钮',
},
]
7 changes: 0 additions & 7 deletions src/modules/rules/space/groups/dynamic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ html[hide-dynamic-page-bili-dyn-dispute] {
}
}

// 隐藏 稍后再看按钮
html[hide-dynamic-page-bili-dyn-watchlater] {
.bili-dyn-card-video__mark {
display: none !important;
}
}

// 隐藏 官方话题Tag
html[hide-dynamic-page-bili-dyn-official-topic] {
.bili-dyn-content__orig__topic,
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/space/groups/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ export const spaceDynamicItems: Item[] = [
id: 'hide-dynamic-page-bili-dyn-dispute',
name: '隐藏 警告notice',
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-watchlater',
name: '隐藏 稍后再看按钮',
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-official-topic',
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/video/groups/player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ html[video-page-hide-bpx-player-bili-reserve] {
}
}

// 隐藏 视频链接 (稍后再看)
// 隐藏 视频链接
html[video-page-hide-bpx-player-bili-link] {
.bili-link,
.bili-danmaku-x-link {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/video/groups/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const videoPlayerItems: Item[] = [
{
type: 'switch',
id: 'video-page-hide-bpx-player-bili-link',
name: '隐藏 视频链接 (稍后再看)',
name: '隐藏 视频链接',
},
{
type: 'switch',
Expand Down
12 changes: 0 additions & 12 deletions src/modules/rules/video/groups/right.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,6 @@ html[video-page-hide-right-container-duration] {
}
}

// 隐藏 相关视频 稍后再看按钮
html[video-page-hide-right-container-reco-list-watch-later-video] {
.right-container .watch-later-video {
display: none !important;
}

// 适配watchlater, favlist
.recommend-list-container .watch-later-video {
display: none !important;
}
}

// 隐藏 相关视频 UP主
html[video-page-hide-right-container-reco-list-rec-list-info-up] {
.right-container .info {
Expand Down
5 changes: 0 additions & 5 deletions src/modules/rules/video/groups/right.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ export const videoRightItems: Item[] = [
id: 'video-page-hide-right-container-duration',
name: '隐藏 相关视频 视频时长',
},
{
type: 'switch',
id: 'video-page-hide-right-container-reco-list-watch-later-video',
name: '隐藏 相关视频 稍后再看按钮',
},
{
type: 'switch',
id: 'video-page-hide-right-container-reco-list-rec-list-info-up',
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/video/groups/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ html[video-page-hide-below-info-video-note] {
}
}

// 隐藏 举报/笔记/稍后再看
// 隐藏 折叠菜单
html[video-page-hide-below-info-video-report-menu] {
.video-toolbar-right .video-tool-more {
display: none !important;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rules/video/groups/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const videoToolbarItems: Item[] = [
{
type: 'switch',
id: 'video-page-hide-below-info-video-report-menu',
name: '隐藏 举报/笔记/稍后再看',
name: '隐藏 折叠菜单',
},
{
type: 'switch',
Expand Down

0 comments on commit f7ea79b

Please sign in to comment.