Skip to content

Commit

Permalink
feat: live page hide avatar pendant
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 29, 2024
1 parent e34b26c commit dfd77f4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## 3.6.3

- 新增:修复字体支持动态详情页
- 新增:直播页隐藏头像饰品
- 更新:收录更多AI机器人
- 优化:功能细节

## 3.6.2

Expand Down
3 changes: 1 addition & 2 deletions src/rules/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,12 @@ if (isPageHomepage()) {
description: '隐藏 广告',
defaultStatus: true,
itemCSS: `
:is(.feed-card, .bili-video-card.is-rcmd):has(.bili-video-card__info--ad, [href*="cm.bilibili.com"]) {
:is(.feed-card, .bili-video-card.is-rcmd):has(.bili-video-card__info--ad, [href*="cm.bilibili.com"], .bili-video-card__info--creative-ad) {
display: none !important;
}
:is(.feed-card, .bili-video-card.is-rcmd):not(:has(.bili-video-card__wrap, .bili-video-card__skeleton)) {
display: none !important;
}
/* 布局调整 */
.recommended-container_floor-aside .container>*:nth-of-type(5) {
margin-top: 0 !important;
Expand Down
16 changes: 16 additions & 0 deletions src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ if (isPageLiveRoom()) {
color: #61666D !important;
fill: #61666D !important;
}
/* 礼物栏 */
#gift-control-vm {
background-image: unset !important;
}
/* 右侧弹幕框背景 */
#chat-control-panel-vm .live-skin-coloration-area .live-skin-main-text {
color: #C9CCD0 !important;
Expand All @@ -97,6 +101,12 @@ if (isPageLiveRoom()) {
#chat-control-panel-vm .bl-button--primary {
background-color: #23ade5;
}
#chat-control-panel-vm .icon-left-part svg>path {
fill: #C9CCD0;
}
#chat-control-panel-vm .icon-left-part>div:hover svg>path {
fill: #00AEEC;
}
`,
}),
// 修复字体
Expand All @@ -119,6 +129,12 @@ if (isPageLiveRoom()) {

// 直播信息栏
const infoItems = [
// 隐藏 头像饰品
new CheckboxItem({
itemID: 'live-page-head-info-avatar-pendant',
description: '隐藏 头像饰品',
itemCSS: `.blive-avatar :is(.blive-avatar-pendant, .blive-avatar-icons){display: none !important;}`,
}),
// 隐藏 粉丝团
new CheckboxItem({
itemID: 'live-page-head-info-vm-upper-row-follow-ctnr',
Expand Down

0 comments on commit dfd77f4

Please sign in to comment.