Skip to content

Commit

Permalink
update: space page comment filter
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Nov 5, 2024
1 parent 8fe47c1 commit 1700037
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- 修复:播放页 调节播放器宽度 Firefox页面抖动bug
- 更新:播放页 右列功能适配页面变动
- 更新:空间页 动态评论过滤适配新版评论区
- 更新:部分功能细节

## 4.0.7
Expand Down
6 changes: 3 additions & 3 deletions src/modules/filters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export const commentFilters: Filter[] = [
checkFn: () => isPageVideo() || isPageBangumi() || isPagePlaylist(),
},
{
name: '动态页 动态评论过滤',
name: '动态页/空间页 动态评论过滤', // 新版空间页评论区
groups: commentFilterDynamicGroups,
entry: commentFilterDynamicEntry,
checkFn: () => isPageDynamic(),
checkFn: () => isPageDynamic() || isPageSpace(),
},
{
name: '空间页 动态评论过滤',
name: '空间页 动态评论过滤', // 旧版空间页评论区
groups: commentFilterSpaceGroups,
entry: commentFilterSpaceEntry,
checkFn: () => isPageSpace(),
Expand Down
4 changes: 2 additions & 2 deletions src/modules/filters/variety/comment/pages/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const GM_KEYS = {
statusKey: 'dynamic-comment-call-user-filter-status',
},
callUserOnly: {
statusKey: 'video-comment-call-user-only-filter-status',
statusKey: 'dynamic-comment-call-user-only-filter-status',
},
isAD: {
statusKey: 'video-comment-ad-filter-status',
statusKey: 'dynamic-comment-ad-filter-status',
},
},
white: {
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 @@ -51,7 +51,7 @@ const GM_KEYS = {
statusKey: 'dynamic-comment-call-user-only-filter-status',
},
isAD: {
statusKey: 'video-comment-ad-filter-status',
statusKey: 'dynamic-comment-ad-filter-status',
},
},
white: {
Expand Down

0 comments on commit 1700037

Please sign in to comment.