mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
683 B
JavaScript
1 line
683 B
JavaScript
(()=>(e,n)=>{const t=()=>Boolean(document.URL.match(/live\.bilibili\.com\/(blanc\/)?(\d)+/));const c=()=>{const e=dq(`#record-live-danmaku`);let t;e.addEventListener("click",(async()=>{if(!dq(".live-danmaku-recorder")){const e=await n.importAsync("record-live-danmaku.vue");t=(new(Vue.extend(e))).$mount();const c=t.$el;document.body.insertAdjacentElement("beforeend",c);t.opened=true}else{t.opened=!t.opened}dq(".gui-settings-mask").click()}))};return{widget:{content:`\n<button class="gui-settings-flat-button" id="record-live-danmaku">\n<i class="mdi mdi-24px mdi-record-rec" style="transform: scale(1.3)"></i>\n<span>记录弹幕</span>\n</button>\n`,condition:t,success:c}}})(); |