b-live-random-send-test

定时从设置的字幕中随机取出一条在B站直播间发送,需先登录B站账号

As of 2023-05-05. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/447936/1185864/b-live-random-send-test.js

// ==UserScript==
// @author          Gamyou
// @version         1.5.5
// @note            23-05-04 1.5.5 新增隐藏礼物栏功能
// ==/UserScript==


!function(){const e=URL.createObjectURL(new Blob(["(",function(){const e={};self.onmessage=(t=>{switch(t.data.command){case"interval:start":const a=setInterval(()=>postMessage({message:"interval:tick",id:t.data.id}),t.data.interval);e[t.data.id]=a;break;case"interval:clear":clearInterval(e[t.data.id]),postMessage({message:"interval:cleared",id:t.data.id}),delete e[t.data.id];break;case"timeout:start":const d=setTimeout(()=>postMessage({message:"timeout:tick",id:t.data.id}),t.data.timeout);e[t.data.id]=d;break;case"timeout:clear":clearTimeout(e[t.data.id]),postMessage({message:"timeout:cleared",id:t.data.id}),delete e[t.data.id]}})}.toString(),")()"],{type:"application/javascript"})),t=new Worker(e);URL.revokeObjectURL(e);const a={id:0,callbacks:{},setInterval:(e,d,l)=>{const n=++a.id;return a.callbacks[n]={fn:e,context:l},t.postMessage({command:"interval:start",interval:d,id:n}),n},setTimeout:(e,d,l)=>{const n=++a.id;return a.callbacks[n]={fn:e,context:l},t.postMessage({command:"timeout:start",timeout:d,id:n}),n},onMessage:e=>{switch(e.data.message){case"interval:tick":case"timeout:tick":const t=a.callbacks[e.data.id];t&&t.fn&&t.fn.apply(t.context);break;case"interval:cleared":case"timeout:cleared":delete a.callbacks[e.data.id]}},clearInterval:e=>t.postMessage({command:"interval:clear",id:e}),clearTimeout:e=>t.postMessage({command:"timeout:clear",id:e})};t.onmessage=a.onMessage.bind(a);let d,l,n,c,i,s,o,r,u,p,h,m,b,g,k,v,x,C,E,f,w,y,L,A,B,I={version:3,random:!0,data1:{available:!0,values:["弹幕①","弹幕②"]},data2:{available:!0,values:["弹幕③","弹幕④"]},data3:{available:!0,values:["弹幕⑤","弹幕⑥"]},data4:{available:!0,values:["弹幕⑦","弹幕⑧"]},data5:{available:!0,values:["弹幕⑨","弹幕Ⅹ"]}},T={},S={},M=[],D=[],G=null,z=null,F=0,R=200,N=0,j=e=>{alert("请更新油猴脚本"),window.location.href=K},H=(e,t)=>null,P=(e,t)=>{console.warn('===> No implementation "setGmValue" method.')},V=e=>{console.warn('===> No implementation "delGmValue" method.')};const K="https://greasyfork.org/scripts/446725-b%E7%AB%99%E7%9B%B4%E6%92%AD%E9%97%B4%E5%AE%9A%E6%97%B6%E5%8F%91%E9%9A%8F%E6%9C%BA%E5%BC%B9%E5%B9%95/code/B%E7%AB%99%E7%9B%B4%E6%92%AD%E9%97%B4%E5%AE%9A%E6%97%B6%E5%8F%91%E9%9A%8F%E6%9C%BA%E5%BC%B9%E5%B9%95.user.js",U=window.location.pathname.replace(/^\/(\S+\/)*/g,""),_=()=>(new Date).getTime(),O=(e,t)=>{let a=document.getElementById("aside-area-vm").getElementsByClassName("chat-input border-box")[0];if(!a)return void alert("找不到输入弹幕文本框,请尝试刷新页面");let d=document.getElementsByClassName("bl-button live-skin-highlight-button-bg live-skin-button-text bl-button--primary bl-button--small")[0];d?(a.value=e,a.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),d.click(),lastSent=_(),++F,console.log("===> "+(new Date).toLocaleString()+" 弹幕发送成功 "+F+" 次,第【"+t+"】条数据 === "+e)):alert("找不到发送按钮,请尝试刷新页面")},W=e=>{if(!e||""==e)return!0;return new RegExp("^[ ]+$").test(e)},$=()=>{for(let e=0;e<M.length;e++)a.clearInterval(M[e]),M[e]=null;M=[]},q=()=>{if(d.checked){if(!z){let e=W(T.signText)?T.signText:"打卡",t=new Date(new Date((new Date).setDate((new Date).getDate()+1)).toDateString()).getTime()-_();console.log("===> 设置凌晨打卡定时器【"+t+"】"),w.value=W(S.signInText)?e:S.signInText,z=a.setTimeout(()=>{O(W(w.value)?e:w.value,0),console.log("===> 进入下一轮递归打卡"),a.clearTimeout(z),z=null,q()},t)}}else z&&(console.log("===> 关闭自动打卡功能"),a.clearTimeout(z),z=null)},J=()=>{r.checked=I.random,u.checked=I.data1.available,p.checked=I.data2.available,h.checked=I.data3.available,m.checked=I.data4.available,b.checked=I.data5.available,d.checked=S.autoSignIn,i.checked=S.noSleep,l.checked=S.hideLoginGuide,n.checked=S.hideHaruna,c.checked=S.hideShop,s.checked=S.hideGift,o.checked=S.hideRoomFeed,(()=>{ce(),de(),le(),ne(),oe(),q();let e=a.setTimeout(()=>{ie(),a.clearTimeout(e)},1e3)})()},Q=()=>k.style.display="block",X=()=>{J(),k.style.display="none"},Y=()=>{if(I.data1.values.length<=0&&I.data2.values.length<=0&&I.data3.values.length<=0&&I.data4.values.length<=0&&I.data5.values.length<=0)return D||[];let e=[];e=I.data1.available?e.concat(I.data1.values):e,e=I.data2.available?e.concat(I.data2.values):e,e=I.data3.available?e.concat(I.data3.values):e,e=I.data4.available?e.concat(I.data4.values):e,e=I.data5.available?e.concat(I.data5.values):e,D=e,r.checked?D=(e=>{for(let t=0;t<e.length;t++){const a=Math.floor(Math.random()*e.length),d=e[t];e[t]=e[a],e[a]=d}return e})(e):N=0},Z=()=>{I.data1.values=W(v.value)?[]:v.value.split("|"),I.data2.values=W(x.value)?[]:x.value.split("|"),I.data3.values=W(C.value)?[]:C.value.split("|"),I.data4.values=W(E.value)?[]:E.value.split("|"),I.data5.values=W(f.value)?[]:f.value.split("|"),I.random=r.checked,I.data1.available=u.checked,I.data2.available=p.checked,I.data3.available=h.checked,I.data4.available=m.checked,I.data5.available=b.checked,Y(),P(U,I),T.configKey&&(S.autoSignIn=d.checked,S.signInText=w.value,S.noSleep=i.checked,S.hideLoginGuide=l.checked,S.hideHaruna=n.checked,S.hideShop=c.checked,S.hideGift=s.checked,S.hideRoomFeed=o.checked,P(T.configKey,S)),L.style.display="block";let e=a.setTimeout(()=>{L.style.display="none",k.style.display="none",a.clearTimeout(e)},1500)},ee=()=>D.length<1?(j({text:"请任意在一个分组里输入一条弹幕",title:"没有弹幕数据,请先设置",image:"https://www.bilibili.com/favicon.ico",highlight:!0,timeout:1e4}),!1):(r.checked&&(N=Math.floor(Math.random()*D.length)),O(D[N],N),++N>=D.length&&(N=0),!0),te=()=>{let e=0;if(G)a.clearInterval(G),G=null,y.style.background="rgba(217,157,27,1)",y.textContent="开始",g.removeAttribute("disabled");else{if(e=1e3*(W(g.value)?600:g.value),!ee())return;G=a.setInterval(ee,e),y.style.background="#ff0000",y.textContent="停止",g.setAttribute("disabled","disabled")}},ae=(e,t)=>{t?e.style.removeProperty("display"):e.style.setProperty("display","none","important")},de=()=>{let e=document.getElementById("switch-login-guide-vm");e&&ae(e,!l.checked)},le=()=>{let e=document.getElementById("my-dear-haruna-vm");e&&ae(e,!n.checked)},ne=()=>{let e=document.getElementById("shop-popover-vm");e&&ae(e,!c.checked)},ce=()=>{let e=document.getElementsByClassName("gift-control-section")[0];e&&ae(e,!s.checked),(e=document.getElementById("web-player__bottom-bar__container"))&&ae(e,!s.checked),e=document.getElementsByTagName("video");for(let t=0;t<e.length;t++){if(!e[t])return;s.checked?e[t].style.setProperty("height","100%"):(document.body.classList.contains("player-full-win")||document.body.classList.contains("fullscreen-fix"))&&e[t].style.setProperty("height","calc(100% - 114px)")}},ie=()=>{let e=document.getElementsByClassName("room-feed")[0];e&&ae(e,!o.checked),(e=document.getElementsByClassName("right-container")[0])&&e.style.setProperty("min-height","auto"),(e=document.getElementsByClassName("flip-view p-relative")[0])&&ae(e,!o.checked)},se=()=>{if(!document.getElementById("danmu-setting-panel")){console.log("===> 进行面板初始化");let e=document.getElementsByClassName("bottom-actions p-relative")[0];if(!e)return console.warn("===> bottom-actions节点丢失"),!1;(e=>{let t=document.createElement("div");t.textContent="弹幕设置",t.classList.add("danmu-random-setting-title");let a=document.createElement("div");a.classList.add("danmu-random-setting-tips"),a.innerHTML='任一分组内输入弹幕即可,多条用<span style="color:#dc6b07;margin:0 2px 0 4px;font-weight:700;font-style:normal;">竖线</span>分隔';let A=document.createElement("div");A.classList.add("danmu-random-update-tips"),A.innerHTML='<span style="color:#f00">更新提示:</span>新增隐藏礼物栏功能';let B=document.createElement("div");B.textContent="分组 1 :",B.classList.add("danmu-group-title"),(u=document.createElement("input")).type="checkbox",u.id="group1Checkbox",u.checked=!0;let I=document.createElement("label");I.setAttribute("for","group1Checkbox"),I.classList.add("switch-check-label");let T=document.createElement("div");T.classList.add("switch-check"),T.appendChild(u),T.appendChild(I),(v=document.createElement("textarea")).classList.add("danmu-group-textarea"),v.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let S=document.createElement("div");S.textContent="分组 2 :",S.classList.add("danmu-group-title"),(p=document.createElement("input")).type="checkbox",p.id="group2Checkbox",p.checked=!0;let M=document.createElement("label");M.setAttribute("for","group2Checkbox"),M.classList.add("switch-check-label");let D=document.createElement("div");D.classList.add("switch-check"),D.appendChild(p),D.appendChild(M),(x=document.createElement("textarea")).classList.add("danmu-group-textarea"),x.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let G=document.createElement("div");G.textContent="分组 3 :",G.classList.add("danmu-group-title"),(h=document.createElement("input")).type="checkbox",h.id="group3Checkbox",h.checked=!0;let z=document.createElement("label");z.setAttribute("for","group3Checkbox"),z.classList.add("switch-check-label");let F=document.createElement("div");F.classList.add("switch-check"),F.appendChild(h),F.appendChild(z),(C=document.createElement("textarea")).classList.add("danmu-group-textarea"),C.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let R=document.createElement("div");R.textContent="分组 4 :",R.classList.add("danmu-group-title"),(m=document.createElement("input")).type="checkbox",m.id="group4Checkbox",m.checked=!0;let N=document.createElement("label");N.setAttribute("for","group4Checkbox"),N.classList.add("switch-check-label");let j=document.createElement("div");j.classList.add("switch-check"),j.appendChild(m),j.appendChild(N),(E=document.createElement("textarea")).classList.add("danmu-group-textarea"),E.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let H=document.createElement("div");H.textContent="分组 5 :",H.classList.add("danmu-group-title"),(b=document.createElement("input")).type="checkbox",b.id="group5Checkbox",b.checked=!0;let P=document.createElement("label");P.setAttribute("for","group5Checkbox"),P.classList.add("switch-check-label");let V=document.createElement("div");V.classList.add("switch-check"),V.appendChild(b),V.appendChild(P),(f=document.createElement("textarea")).classList.add("danmu-group-textarea"),f.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let K=document.createElement("div");K.style.margin="20px 0 10px";let U=document.createElement("div");U.textContent="以下设置保存之后将适用所有直播间",U.title="其它直播间请刷新应用设置",U.classList.add("global-setting-tip"),U.classList.add("switch-check-group"),K.appendChild(U),(d=document.createElement("input")).type="checkbox",d.id="signInCheckbox",d.checked=!0,d.addEventListener("click",q);let _=document.createElement("label");_.setAttribute("for","signInCheckbox"),_.classList.add("switch-check-label");let O=document.createElement("span");O.textContent="打卡弹幕:",O.title="每日零点发送一条打卡弹幕",O.classList.add("danmu-random-switch-button-title"),(w=document.createElement("input")).style.border="0",w.style.width="145px",w.setAttribute("placeholder","输入零点打卡发送的文字");let W=document.createElement("div");W.classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(d),W.appendChild(_),W.appendChild(O),W.appendChild(w),K.appendChild(W),(i=document.createElement("input")).type="checkbox",i.id="noSleepCheckbox",i.checked=!1,i.addEventListener("click",oe),(_=document.createElement("label")).setAttribute("for","noSleepCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="防止直播间休眠",O.title="防止直播间页面一段时间没操作之后进入休眠",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(i),W.appendChild(_),W.appendChild(O),K.appendChild(W),(l=document.createElement("input")).type="checkbox",l.id="hideLoginGuideCheckbox",l.checked=!1,l.addEventListener("click",de),(_=document.createElement("label")).setAttribute("for","hideLoginGuideCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="隐藏播放器底部登录提示",O.title="隐藏未登录时播放器底部显示的登录提示",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(l),W.appendChild(_),W.appendChild(O),K.appendChild(W),(n=document.createElement("input")).type="checkbox",n.id="hideHarunaCheckbox",n.checked=!1,n.addEventListener("click",le),(_=document.createElement("label")).setAttribute("for","hideHarunaCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="隐藏看板娘立绘",O.title="隐藏直播间Haruna立绘",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(n),W.appendChild(_),W.appendChild(O),K.appendChild(W),(c=document.createElement("input")).type="checkbox",c.id="hideShopCheckbox",c.checked=!1,c.addEventListener("click",ne),(_=document.createElement("label")).setAttribute("for","hideShopCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="隐藏播放器左上角购物提示",O.title="隐藏播放器左上角的商店购物提示",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(c),W.appendChild(_),W.appendChild(O),K.appendChild(W),(s=document.createElement("input")).type="checkbox",s.id="hideGiftControlCheckbox",s.checked=!1,s.addEventListener("click",ce),(_=document.createElement("label")).setAttribute("for","hideGiftControlCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="隐藏礼物栏",O.title="隐藏播放器底部的礼物栏",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(s),W.appendChild(_),W.appendChild(O),K.appendChild(W),(o=document.createElement("input")).type="checkbox",o.id="hideRoomFeedCheckbox",o.checked=!1,o.addEventListener("click",ie),(_=document.createElement("label")).setAttribute("for","hideRoomFeedCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="隐藏播主动态",O.title="隐藏播放器底下播主的动态栏",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.classList.add("switch-check-group"),W.appendChild(o),W.appendChild(_),W.appendChild(O),K.appendChild(W),(L=document.createElement("span")).textContent="设置成功",L.classList.add("danmu-random-setting-success-text");let $=document.createElement("div");$.classList.add("danmu-random-setting-success-tips"),$.appendChild(L);let J=document.createElement("i");J.setAttribute("title","保存"),J.classList.add("el-button"),J.classList.add("el-icon-check"),J.classList.add("is-circle"),J.addEventListener("click",Z);let Y=document.createElement("i");Y.setAttribute("title","关闭"),Y.classList.add("el-button"),Y.classList.add("el-icon-close"),Y.classList.add("is-circle"),Y.addEventListener("click",X);let ee=document.createElement("div");ee.classList.add("danmu-random-set-button-container"),ee.appendChild(J),ee.appendChild(Y),(r=document.createElement("input")).type="checkbox",r.id="rdCheckbox",r.checked=!0,(_=document.createElement("label")).setAttribute("for","rdCheckbox"),_.classList.add("switch-check-label"),(O=document.createElement("span")).textContent="随机从上面的弹幕中选出一条发送",O.title="将合并所有分组数据,从中随机选出一条发送",O.classList.add("danmu-random-switch-button-title"),(W=document.createElement("div")).classList.add("switch-check"),W.appendChild(r),W.appendChild(_),W.appendChild(O);let ae=document.createElement("div");ae.classList.add("danmu-random-setting-bottom"),ae.appendChild($),ae.appendChild(ee);let se=document.createElement("div");se.style.height="calc(98% - 30px - 25px)",se.appendChild(B),se.appendChild(T),se.appendChild(v),se.appendChild(S),se.appendChild(D),se.appendChild(x),se.appendChild(G),se.appendChild(F),se.appendChild(C),se.appendChild(R),se.appendChild(j),se.appendChild(E),se.appendChild(H),se.appendChild(V),se.appendChild(f),se.appendChild(W),se.appendChild(K),se.appendChild(ae),(k=document.createElement("div")).id="danmu-setting-panel",k.classList.add("danmu-random-setting-panel"),k.appendChild(t),k.appendChild(A),k.appendChild(a),k.appendChild(se),document.getElementById("aside-area-vm").appendChild(k),(y=document.createElement("button")).textContent="开始",y.style.minWidth="65px",y.style.height="24px",y.style.fontSize="12px",y.style.borderRadius="4px",y.style.color="#ffffff",y.style.background="rgba(217,157,27,1)",y.style.border="0",y.style.cursor="pointer",y.addEventListener("click",te);let re=document.createElement("span");re.textContent="每",re.style.color="#ffffff",re.style.fontSize="12px",re.style.marginLeft="4px",re.style.backgroundColor="#ec6c1b",(g=document.createElement("input")).value=600,g.style.width="25px",g.style.height="15px",g.style.margin="0 3px",g.style.border="0",g.style.borderRadius="3px",g.setAttribute("oninput","this.value = this.value.replace(/[^0-9]/g, '')");let ue=document.createElement("span");ue.textContent="秒发送",ue.style.color="#ffffff",ue.style.fontSize="12px",ue.style.backgroundColor="#ec6c1b",ue.style.marginRight="4px";let pe=document.createElement("i");pe.classList.add("el-icon-setting");let he=document.createElement("button");he.title="设置",he.classList.add("el-button"),he.classList.add("el-button--mini"),he.classList.add("is-circle"),he.addEventListener("click",Q),he.appendChild(pe);let me=document.createElement("div");me.style.position="absolute",me.appendChild(y),me.appendChild(re),me.appendChild(g),me.appendChild(ue),me.appendChild(he),e.appendChild(me)})(e),(()=>{let e=H(U,null);e&&(I.version===e.version?I=e:2===e.version?(I.data1=e.data1,I.data2=e.data2,I.data3=e.data3,I.data4=e.data4,I.data5=e.data5,P(U,I)):(I.data1.values=e.data1?e.data1:I.data1.values,I.data2.values=e.data2?e.data2:I.data2.values,I.data3.values=e.data3?e.data3:I.data3.values,I.data4.values=e.data4?e.data4:I.data4.values,I.data5.values=e.data5?e.data5:I.data5.values,P(U,I))),T.configKey&&(S=H(T.configKey,{}),w.value=W(S.signInText)?"":S.signInText),J(),v.value=I.data1.values.join("|"),x.value=I.data2.values.join("|"),C.value=I.data3.values.join("|"),E.value=I.data4.values.join("|"),f.value=I.data5.values.join("|"),Y()})(),console.log("===> 面板初始化完成")}return!0},oe=()=>{i.checked?A||(console.log("===> 开启防休眠功能"),A=a.setInterval(()=>{B=a.setTimeout(()=>{a.clearTimeout(B),document.body.dispatchEvent(new MouseEvent("mousemove",{bubbles:!0}))},3e3*Math.random())},17e3)):(console.log("===> 关闭防休眠功能"),A&&(a.clearInterval(A),A=null),B&&(a.clearTimeout(B),B=null))};(()=>{let e=document.createElement("link");e.rel="stylesheet",e.href="https://unpkg.com/[email protected]/lib/theme-chalk/index.css",document.head.appendChild(e);let t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML='.danmu-group-title{font-size:14px;padding-left:2px;color:rgb(18, 56, 141);display:inline;margin-right:60%;vertical-align:middle;}.danmu-group-textarea{width:98%;min-height:100px;height:16%;margin:1px 0px 4px;border:0px;resize:none;}.el-button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#FFF;border:1px solid #DCDFE6;color:#606266;-webkit-appearance:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;outline:0;margin:0;-webkit-transition:.1s;transition:.1s;font-weight:500;padding:12px 20px;font-size:14px;border-radius:4px}.el-button.is-circle{border-radius:50%;padding:12px}.el-button--mini.is-circle{padding:3px;}.el-button:focus,.el-button:hover{color:#409EFF;border-color:#c6e2ff;background-color:#ecf5ff}.el-icon-close.is-circle{padding:5px;color:#ff0000;border:1px solid #ff0000;margin-left:20px;}.el-icon-check.is-circle{padding:5px;color:#0000ff;border:1px solid #0000ff;margin-left:20px;}input[type="checkbox"]{display:none;}.switch-check{display:inline-block;margin:0 5px;vertical-align:middle;}.switch-check-label{display:inline-block;vertical-align:middle;border:1px solid #bdc3c7;border-radius:60px;width:40px;height:18px;position:relative;transition:all .3s;cursor:pointer;}.switch-check-label:before{width:14px;height:14px;content:"";display:inline-block;background-color:#bdc3c7;border-radius:100%;position:absolute;top:2px;left:4px;transition:all .3s;}.switch-check :checked ~ label{background-color:#26b22b;border-color:#26b22b;}.switch-check :checked ~ label:before{left:22px;background-color:#fff;}.switch-check-group{margin-top:5px;width:95%;}.danmu-random-setting-panel{background-color:#d4f2e0;border-radius:2px;width:100%;height:100%;overflow-y:auto;position:absolute;left:0px;top:0px;z-index:999;display:none;}.danmu-random-setting-panel::-webkit-scrollbar{width:4px;height:4px;}.danmu-random-setting-panel::-webkit-scrollbar-thumb{border-radius:5px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,0.2);background: rgba(0,0,0,0.2);}.danmu-random-setting-panel::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,0.2);border-radius: 0;background:rgba(0,0,0,0.1);}.danmu-random-setting-title{text-align:center;font-size:16px;font-weight:700;color:#1c5adc;line-height:30px;}.danmu-random-setting-tips{color:#0b81cc;text-align:center;font-style:italic;}.danmu-random-update-tips{color:#0b81cc;text-align:center;font-size:13px;font-weight:700;margin:10px 0px;}.danmu-random-setting-bottom{width:100%;line-height:35px;}.danmu-random-switch-button-title{font-size:14px;vertical-align:middle;margin-left:5px;color:#095ca2;cursor:help;}.danmu-random-setting-success-tips{text-align:center;display:inline-block;vertical-align:middle;width:60%;}.danmu-random-setting-success-text{font-size:16px;color:#128712;display:none;}.danmu-random-set-button-container{display:inline-block;vertical-align:middle;}.global-setting-tip{text-align:center;color:#0b81cc;font-size:12px;font-weight:700;cursor:help;}.disabled{color:#aaaaaa;cursor:not-allowed;}',document.head.appendChild(t)})(),window.debug=debug,window.runStart=(()=>{(()=>{if(!T.version)return!0;if("2.4.0"===T.version)return!1;{let e=T.version.split("."),t="2.4.0".split(".");if(e.length!=t.length)return!0;for(let a=0;a<e.length;a++)if(t[a]>e[a])return!0;return!1}})()?window.location.href=K:M[M.length]=a.setInterval(()=>{se()?($(),console.log("===> 运行成功")):0>=--R&&($(),console.log("===> 创建面板失败,停止初始化"))},1500)}),window.arrayInfo=(()=>console.info(D)),window.setGmNotice=(e=>j=e),window.setGmGetValue=(e=>H=e),window.setGmSetValue=(e=>P=e),window.setGmDelValue=(e=>e),window.setParentData=(e=>T=e),window.autoSendDanmuModuleLoaded=!0}();