Skip to content

Commit

Permalink
update: item details
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Oct 23, 2024
1 parent 85099b6 commit 3308e83
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/modules/filters/variety/comment/pages/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export const commentFilterDynamicGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.commentContentFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.content.valueKey, []))
Expand Down
2 changes: 1 addition & 1 deletion src/modules/filters/variety/comment/pages/space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export const commentFilterSpaceGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.commentContentFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.content.valueKey, []))
Expand Down
2 changes: 1 addition & 1 deletion src/modules/filters/variety/comment/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export const commentFilterVideoGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.commentContentFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.content.valueKey, []))
Expand Down
2 changes: 1 addition & 1 deletion src/modules/filters/variety/dynamic/pages/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const dynamicFilterDynamicGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.dynVideoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/variety/video/pages/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export const videoFilterChannelGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoUploaderKeywordFilter.setParam(
Expand Down Expand Up @@ -359,7 +359,7 @@ export const videoFilterChannelGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -490,7 +490,7 @@ export const videoFilterChannelGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/variety/video/pages/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export const videoFilterHomepageGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoUploaderKeywordFilter.setParam(
Expand Down Expand Up @@ -368,7 +368,7 @@ export const videoFilterHomepageGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -514,7 +514,7 @@ export const videoFilterHomepageGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/variety/video/pages/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const videoFilterPopularGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoUploaderKeywordFilter.setParam(
Expand Down Expand Up @@ -428,7 +428,7 @@ export const videoFilterPopularGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -523,7 +523,7 @@ export const videoFilterPopularGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/variety/video/pages/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const videoFilterSearchGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoUploaderKeywordFilter.setParam(
Expand Down Expand Up @@ -336,7 +336,7 @@ export const videoFilterSearchGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -431,7 +431,7 @@ export const videoFilterSearchGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
4 changes: 2 additions & 2 deletions src/modules/filters/variety/video/pages/space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const videoFilterSpaceGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -304,7 +304,7 @@ export const videoFilterSpaceGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/variety/video/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export const videoFilterVideoGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoUploaderKeywordFilter.setParam(
Expand Down Expand Up @@ -369,7 +369,7 @@ export const videoFilterVideoGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleFilter.setParam(BiliCleanerStorage.get(GM_KEYS.black.title.valueKey, []))
Expand Down Expand Up @@ -489,7 +489,7 @@ export const videoFilterVideoGroups: Group[] = [
editorDescription: [
'每行一个关键词或正则,不区分大小写',
'请勿使用过于激进的关键词或正则',
'正则默认iu模式,无需flag,语法:/abc|\\d+/',
'正则默认 iu 模式,无需 flag,语法:/abc|\\d+/',
],
saveFn: async () => {
mainFilter.videoTitleWhiteFilter.setParam(BiliCleanerStorage.get(GM_KEYS.white.title.valueKey, []))
Expand Down
20 changes: 10 additions & 10 deletions src/modules/rules/dynamic/groups/centerTop.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
// 隐藏 动态发布框
html[hide-dynamic-page-bili-dyn-publishing] {
.bili-dyn-publishing {
display: none !important;
}
main section:nth-child(1) {
margin-bottom: 0 !important;
}
}

// 双行显示 UP 主列表
html[dynamic-page-up-list-dual-line-mode] {
.bili-dyn-up-list__content {
Expand Down Expand Up @@ -82,16 +92,6 @@ html[dynamic-page-up-list-checked-item-hide] {
}
}

// 隐藏 动态发布框
html[hide-dynamic-page-bili-dyn-publishing] {
.bili-dyn-publishing {
display: none !important;
}
main section:nth-child(1) {
margin-bottom: 0 !important;
}
}

// 隐藏 动态分类Tab bar
html[hide-dynamic-page-bili-dyn-list-tabs] {
.bili-dyn-list-tabs {
Expand Down
12 changes: 6 additions & 6 deletions src/modules/rules/dynamic/groups/centerTop.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { Item } from '../../../../types/item'

export const dynamicCenterTopItems: Item[] = [
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-publishing',
name: '隐藏 动态发布框',
defaultEnable: true,
},
{
type: 'switch',
id: 'dynamic-page-up-list-dual-line-mode',
Expand All @@ -16,12 +22,6 @@ export const dynamicCenterTopItems: Item[] = [
id: 'dynamic-page-up-list-checked-item-hide',
name: '隐藏 UP 主列表 已查看项',
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-publishing',
name: '隐藏 动态发布框',
defaultEnable: true,
},
{
type: 'switch',
id: 'hide-dynamic-page-bili-dyn-list-tabs',
Expand Down
4 changes: 0 additions & 4 deletions src/modules/rules/watchlater/groups/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export const watchlaterBasicItems: Item[] = [
id: 'watchlater-layout-5-column',
name: '5 列布局',
},
{
id: 'watchlater-layout-6-column',
name: '6 列布局',
},
],
},
{
Expand Down
4 changes: 4 additions & 0 deletions src/utils/pageType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const currPage = (): string => {
if (host === 'space.bilibili.com') {
return 'space'
}
if (host === 'message.bilibili.com') {
return 'message'
}
// 分区子分类
if (!href.includes('bilibili.com/v/popular/') && href.includes('bilibili.com/v/')) {
return 'channel'
Expand Down Expand Up @@ -62,3 +65,4 @@ export const isPageFestival = () => ans === 'festival'
export const isPageChannel = () => ans === 'channel'
export const isPageSpace = () => ans === 'space'
export const isPageWatchlater = () => ans === 'watchlater'
export const isPageMessage = () => ans === 'message'

0 comments on commit 3308e83

Please sign in to comment.