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 Jul 4, 2024
1 parent 2809c96 commit 9ba2199
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/rules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ if (!isPageLiveHome()) {
.bili-header__bar li:has(.loc-mc-box) {
display: none !important;
}
.bili-header__bar .left-entry li:not(:has(.v-popover)):has([href^="https://live.bilibili.com/"]) {
.bili-header__bar .left-entry li.left-loc-entry:not(:has(.v-popover)):has([href^="https://live.bilibili.com/"]) {
display: none !important;
}
.bili-header__bar .left-entry li:not(:has(.v-popover)):has([href^="https://www.bilibili.com/bangumi/play/ss"]) {
Expand Down
30 changes: 21 additions & 9 deletions src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ if (isPageLiveRoom()) {
new CheckboxItem({
itemID: 'live-page-default-skin',
description: '禁用 播放器皮肤',
itemCSS: `#head-info-vm {
itemCSS: `
#head-info-vm {
background-image: unset !important;
/* color不加important, 适配Evolved黑暗模式 */
background-color: white;
Expand All @@ -90,6 +91,17 @@ if (isPageLiveRoom()) {
background-image: unset !important;
}
/* 右侧弹幕框背景 */
#rank-list-vm, #rank-list-ctnr-box {
background-image: unset !important;
background-color: #efefef;
}
#rank-list-ctnr-box *:not(.fans-medal-content),
#rank-list-ctnr-box .tabs .pilot .hasOne .text-style,
#rank-list-ctnr-box .tabs .pilot .hasNot .text-style,
#rank-list-ctnr-box .live-skin-coloration-area .live-skin-main-text,
#rank-list-ctnr-box .guard-skin .nameBox a {
color: black !important;
}
#chat-control-panel-vm .live-skin-coloration-area .live-skin-main-text {
color: #C9CCD0 !important;
fill: #C9CCD0 !important;
Expand All @@ -107,7 +119,7 @@ if (isPageLiveRoom()) {
#chat-control-panel-vm .icon-left-part>div:hover svg>path {
fill: #00AEEC;
}
`,
`,
}),
// 禁用 直播背景
new CheckboxItem({
Expand All @@ -118,11 +130,11 @@ if (isPageLiveRoom()) {
background-image: unset !important;
}
#player-ctnr {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
border-radius: 12px;
}
#aside-area-vm {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}`,
}),
// 修复字体
Expand All @@ -145,7 +157,7 @@ if (isPageLiveRoom()) {
itemID: 'activity-live-auto-jump',
description: '活动直播页 自动跳转普通直播 (实验功能)',
enableFunc: async () => {
if (document.querySelector('#internationalHeader')) {
if (document.querySelector('.rendererRoot')) {
if (!location.href.includes('/blanc/')) {
window.location.href = location.href.replace('live.bilibili.com/', 'live.bilibili.com/blanc/')
}
Expand Down Expand Up @@ -354,10 +366,10 @@ if (isPageLiveRoom()) {

// 右栏 弹幕列表
const rightContainerItems = [
// 折叠 房间观众/大航海
// 折叠 排行榜/大航海
new CheckboxItem({
itemID: 'live-page-rank-list-vm-fold',
description: '折叠 房间观众/大航海',
description: '折叠 排行榜/大航海',
// calc中强调单位,var变量必须添加单位,否则fallback
itemCSS: `
#rank-list-vm {
Expand All @@ -384,10 +396,10 @@ if (isPageLiveRoom()) {
}
`,
}),
// 隐藏 房间观众/大航海
// 隐藏 排行榜/大航海
new CheckboxItem({
itemID: 'live-page-rank-list-vm',
description: '隐藏 房间观众/大航海',
description: '隐藏 排行榜/大航海',
// calc中强调单位,var变量必须添加单位,否则fallback
itemCSS: `
#rank-list-vm {
Expand Down

0 comments on commit 9ba2199

Please sign in to comment.