mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
修改使用instantStyles实现 删除编译产物
This commit is contained in:
parent
d69b0c6797
commit
2bcbb5dbbd
@ -1 +0,0 @@
|
||||
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["live/hide-gift-fullscreen"]=o():e["live/hide-gift-fullscreen"]=o()}(globalThis,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},o={};e.d(o,{component:()=>l});const t=coreApis.componentApis.define,n=coreApis.utils.urls,r=coreApis.componentApis.live.liveControlBar,i=coreApis.style,l=(0,t.defineComponentMetadata)({name:"hide-fullscreen-gift-bar",displayName:"全屏直播简化",description:"移除全屏观看直播时的底部礼物栏",entry:async()=>{(0,r.waitForControlBar)({callback:async()=>{(0,i.addStyle)("#full-screen-interactive-wrap { display: none !important }","hide-fullscreen-gift"),(0,i.addStyle)("#fullscreen-danmaku-vm .fullscreen-danmaku { bottom: 5px !important }","fix_fullscreen_danmaku")}})},tags:[componentsTags.live],urlInclude:n.liveUrls,commitHash:"63410b0d7d30e49d2b826351b673c6f0c5887654",coreVersion:"2.8.0"});return o=o.component})()));
|
||||
@ -0,0 +1,7 @@
|
||||
#full-screen-interactive-wrap {
|
||||
display: none !important
|
||||
}
|
||||
|
||||
#fullscreen-danmaku-vm .fullscreen-danmaku {
|
||||
bottom: 5px !important
|
||||
}
|
||||
@ -1,26 +1,17 @@
|
||||
import { defineComponentMetadata } from '@/components/define'
|
||||
import { liveUrls } from '@/core/utils/urls'
|
||||
import { waitForControlBar } from '@/components/live/live-control-bar'
|
||||
import { addStyle } from '@/core/style'
|
||||
|
||||
export const component = defineComponentMetadata({
|
||||
name: 'hide-fullscreen-gift-bar',
|
||||
displayName: '全屏直播简化',
|
||||
displayName: '全屏直播礼物简化',
|
||||
description: '移除全屏观看直播时的底部礼物栏',
|
||||
entry: async () => {
|
||||
waitForControlBar({
|
||||
callback: async () => {
|
||||
addStyle(
|
||||
'#full-screen-interactive-wrap { display: none !important }',
|
||||
'hide-fullscreen-gift',
|
||||
)
|
||||
addStyle(
|
||||
'#fullscreen-danmaku-vm .fullscreen-danmaku { bottom: 5px !important }',
|
||||
'fix_fullscreen_danmaku',
|
||||
)
|
||||
},
|
||||
})
|
||||
},
|
||||
tags: [componentsTags.live],
|
||||
instantStyles: [
|
||||
{
|
||||
name: 'hide-fullscreen-gift',
|
||||
style: () => import('./hide-full-screen-gift.css'),
|
||||
},
|
||||
],
|
||||
entry: none,
|
||||
tags: [componentsTags.live, componentsTags.style],
|
||||
urlInclude: liveUrls,
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user