Add promotion popup and danmaku block (fix #4565)

This commit is contained in:
the1812 2024-01-14 19:29:17 +08:00
parent 66307a7049
commit 879f1951a7
4 changed files with 26 additions and 0 deletions

View File

@ -48,6 +48,10 @@ const options = defineOptionsMetadata({
displayName: '禁用UP主弹幕',
defaultValue: true,
},
upSlogan: {
displayName: '禁用带货弹幕',
defaultValue: true,
},
vip: {
displayName: '禁用大会员弹幕',
defaultValue: true,

View File

@ -37,3 +37,14 @@ body.disable-vip-danmaku-style {
--textShadow: var(--danmaku-text-shadow);
}
}
body.disable-upSlogan-danmaku-style {
.bili-upslogan {
padding: 0 !important;
opacity: var(--opacity) !important;
font-weight: var(--fontWeight) !important;
background-color: transparent !important;
img {
display: none !important;
}
}
}

View File

@ -51,5 +51,9 @@ export const component = defineComponentMetadata({
defaultValue: true,
displayName: '预告',
},
promotions: {
defaultValue: true,
displayName: '心动',
},
},
})

View File

@ -50,5 +50,12 @@ body {
display: none !important;
}
}
// https://www.bilibili.com/video/BV1Qe411d7LM/?t=221
&-promotions {
.bili-cmtime,
.bpx-player-cmtime {
display: none !important;
}
}
}
}