mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
416 B
JavaScript
1 line
416 B
JavaScript
(()=>(r,t)=>{const e=async r=>{if(!document.URL.match(/^https:\/\/live.bilibili.com\/(blanc\/)?(\d+)/)){return}const t=await SpinQuery.select(".bilibili-live-player-video-controller, .web-player-controller-wrap:not(.web-player-controller-bg)");if(!t){return}const{init:e,callback:l}=r;e(t);Observer.childList(t,(async()=>{const r=dq(t,".control-area");if(!r){return}l(r)}))};return{export:{waitForControlBar:e}}})(); |