Skip to content

Commit

Permalink
update: live page items
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Aug 29, 2024
1 parent 94b8a3b commit 1baad02
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/rules/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ if (isPageHomepage()) {
description: '隐藏 广告',
defaultStatus: true,
itemCSS: `
:is(.feed-card, .bili-video-card.is-rcmd):has(.bili-video-card__info--ad, [href*="cm.bilibili.com"], .bili-video-card__info--creative-ad) {
:is(.feed-card, .bili-video-card):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)) {
:is(.feed-card, .bili-video-card):not(:has(.bili-video-card__wrap, .bili-video-card__skeleton)) {
display: none !important;
}
/* 布局调整 */
Expand Down
43 changes: 29 additions & 14 deletions src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,13 @@ if (isPageLiveRoom()) {
new CheckboxItem({
itemID: 'live-page-gift-control-vm',
description: '隐藏 礼物栏',
itemCSS: `#gift-control-vm {display: none !important;}
itemCSS: `
#gift-control-vm {
display: none !important;
}
#sections-vm {
margin-top: 100px !important;
}
/* 壁纸高度 */
#room-background-vm {min-height: calc(100vh - 64px) !important;}
/* 补齐圆角, 不可important */
Expand Down Expand Up @@ -587,17 +593,11 @@ if (isPageLiveRoom()) {
itemID: 'live-page-control-panel-icon-row',
description: '隐藏 发送框 功能按钮',
itemCSS: `
.control-panel-ctnr-new {
padding: 8px 8px !important;
}
.control-panel-icon-row-new {
.control-panel-icon-row {
display: none !important;
}
.chat-input-ctnr-new {
margin-top: 0 !important;
}
#chat-control-panel-vm {
height: fit-content !important;
height: 115px;
}
/* 弹幕栏 */
#aside-area-vm {
Expand All @@ -623,19 +623,34 @@ if (isPageLiveRoom()) {
new CheckboxItem({
itemID: 'live-page-chat-input-ctnr-send-btn',
description: '隐藏 发送框 发送按钮 (回车发送)',
itemCSS: `.right-action-btn {display: none !important;}`,
itemCSS: `
.bottom-actions {
display: none !important;
}
#chat-control-panel-vm {
height: fit-content !important;
}
/* 弹幕栏 */
#aside-area-vm {
display: flex;
flex-direction: column;
}
.chat-history-panel {
flex: 1;
}
.chat-history-panel .danmaku-at-prompt {
bottom: 100px;
}
`,
}),
// 隐藏 发送框
new CheckboxItem({
itemID: 'live-page-chat-input-ctnr',
description: '隐藏 发送框',
itemCSS: `
.chat-input-ctnr-new {
.chat-input-ctnr, .bottom-actions {
display: none !important;
}
.control-panel-ctnr-new {
padding: 8px 8px !important;
}
#chat-control-panel-vm {
height: fit-content !important;
}
Expand Down

0 comments on commit 1baad02

Please sign in to comment.