Skip to content

Commit

Permalink
feat: dyn page avatar cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 24, 2024
1 parent a47c25f commit 0171434
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 3.6.1

- 新增:动态页隐藏头像框
- 新增:动态页隐藏头像徽章
- 新增:动态页视频过滤
- 移除:动态页隐藏新版反馈,适配网页变动
- 更新:Readme

Expand Down
24 changes: 24 additions & 0 deletions src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ if (isPageDynamic()) {
description: '隐藏 动态分类Tab bar',
itemCSS: `.bili-dyn-list-tabs {display: none !important;}`,
}),
// 隐藏 头像框
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-avatar-pendent',
description: '隐藏 头像框',
itemCSS: `
.b-avatar__layer.center {width: 48px !important; height: 48px !important;}
.b-avatar__layers .b-avatar__layer.center:nth-child(2) picture {display: none !important;}
.b-avatar__layers:has(.b-avatar__layer__res[style^="background"]) {display: none !important;}
`,
}),
// 隐藏 头像徽章
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-avatar-icon',
description: '隐藏 头像徽章',
itemCSS: `.b-avatar__layers .b-avatar__layer:last-child:not(.center) {display: none !important;}`,
}),
// 隐藏 动态右侧饰品
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-ornament',
Expand Down Expand Up @@ -257,6 +273,14 @@ if (isPageDynamic()) {
display: none !important;
}`,
}),
// 隐藏 全部充电视频(含已充电)
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-charge-video',
description: '隐藏 全部充电视频(含已充电)',
itemCSS: `.bili-dyn-list__item:has(.bili-dyn-card-video__badge [src*="qcRJ6sJU91"]) {
display: none !important;
}`,
}),
// 自动展开 相同UP主被折叠的动态
new CheckboxItem({
itemID: 'dynamic-page-unfold-dynamic',
Expand Down

0 comments on commit 0171434

Please sign in to comment.