您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
定时从设置的字幕中随机取出一条在B站直播间发送,需先登录B站账号
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/447936/1219084/b-live-random-send-test.js
!function(){window.autoSendDanmuModuleLoaded=!1;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 l=setTimeout((()=>postMessage({message:"timeout:tick",id:t.data.id})),t.data.timeout);e[t.data.id]=l;break;case"timeout:clear":clearTimeout(e[t.data.id]),postMessage({message:"timeout:cleared",id:t.data.id}),delete e[t.data.id];break}}}.toString(),")()"],{type:"application/javascript"})),t=new Worker(e);URL.revokeObjectURL(e);const a={id:0,callbacks:{},setInterval:(e,l,d)=>{const n=++a.id;return a.callbacks[n]={fn:e,context:d},t.postMessage({command:"interval:start",interval:l,id:n}),n},setTimeout:(e,l,d)=>{const n=++a.id;return a.callbacks[n]={fn:e,context:d},t.postMessage({command:"timeout:start",timeout:l,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];break}},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 l,d,n,i,c,o,s,r,u,p,m,h,b,g,k,v,x,y,C,E,f,w,L,B,I,A,T,S,M,N,P,D,F,z,R,G,j={version:3,random:!0,data1:{available:!0,values:["弹幕①","弹幕②"]},data2:{available:!0,values:["弹幕③","弹幕④"]},data3:{available:!0,values:["弹幕⑤","弹幕⑥"]},data4:{available:!0,values:["弹幕⑦","弹幕⑧"]},data5:{available:!0,values:["弹幕⑨","弹幕Ⅹ"]}},H={},_={},K=[],U=[],V=null,O=null,W=200,$=0,q="lottery_checked",J="close_lottery_checked",Q=e=>{alert("请更新油猴脚本"),window.location.href=te},X=(e,t)=>null,Y=(e,t)=>{},Z=e=>{};const ee="2.4.2",te="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",ae=window.location.pathname.replace(/^\/(\S+\/)*/g,""),le=()=>(new Date).getTime(),de=(e,t)=>{let a=document.getElementById("aside-area-vm").getElementsByClassName("chat-input border-box")[0];if(!a)return void alert("找不到输入弹幕文本框,请尝试刷新页面");let l=document.getElementsByClassName("bl-button bl-button--primary")[0];l?(a.value=e,a.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),l.click(),lastSent=le()):alert("找不到发送按钮,请尝试刷新页面")},ne=e=>{if(!e||""==e)return!0;return new RegExp("^[ ]+$").test(e)},ie=()=>{for(let e=0;e<K.length;e++)a.clearInterval(K[e]),K[e]=null;K=[]},ce=()=>{if(l.checked){if(!O){let e=ne(H.signText)?H.signText:"打卡",t=new Date(new Date((new Date).setDate((new Date).getDate()+1)).toDateString()).getTime()-le();T.value=ne(_.signInText)?e:_.signInText,O=a.setTimeout((()=>{de(ne(T.value)?e:T.value),a.clearTimeout(O),O=null,ce()}),t)}}else O&&(a.clearTimeout(O),O=null)},oe=()=>{g.checked=j.random,k.checked=j.data1.available,v.checked=j.data2.available,x.checked=j.data3.available,y.checked=j.data4.available,C.checked=j.data5.available,l.checked=_.autoSignIn,c.checked=_.noSleep,d.checked=_.hideLoginGuide,n.checked=_.hideHaruna,i.checked=_.hideShop,o.checked=_.hideGift,s.checked=_.hideRoomFeed,r.checked=_.hideRoomInfo,u.checked=_.hideNotice,p.checked=_.hideFooter,m.checked=_.lottery,window.localStorage.setItem(q,_.lottery),h.checked=_.closeLottery,window.localStorage.setItem(J,_.closeLottery),b.checked=_.noPrivacy,(()=>{Be(),Ee(),xe(),ye(),Ce(),Se(),ce(),Ie(),fe(),we(),Le();let e=a.setTimeout((()=>{a.clearTimeout(e),fe(),we(),Le()}),1e3)})()},se=()=>f.style.display="block",re=()=>{oe(),f.style.display="none"},ue=()=>{if(j.data1.values.length<=0&&j.data2.values.length<=0&&j.data3.values.length<=0&&j.data4.values.length<=0&&j.data5.values.length<=0)return U||[];let e=[];e=j.data1.available?e.concat(j.data1.values):e,e=j.data2.available?e.concat(j.data2.values):e,e=j.data3.available?e.concat(j.data3.values):e,e=j.data4.available?e.concat(j.data4.values):e,e=j.data5.available?e.concat(j.data5.values):e,U=e,g.checked?U=(e=>{for(let t=0;t<e.length;t++){const a=Math.floor(Math.random()*e.length),l=e[t];e[t]=e[a],e[a]=l}return e})(e):$=0},pe=()=>{j.data1.values=ne(w.value)?[]:w.value.split("|"),j.data2.values=ne(L.value)?[]:L.value.split("|"),j.data3.values=ne(B.value)?[]:B.value.split("|"),j.data4.values=ne(I.value)?[]:I.value.split("|"),j.data5.values=ne(A.value)?[]:A.value.split("|"),j.random=g.checked,j.data1.available=k.checked,j.data2.available=v.checked,j.data3.available=x.checked,j.data4.available=y.checked,j.data5.available=C.checked,ue(),Y(ae,j),H.configKey&&(_.autoSignIn=l.checked,_.signInText=T.value,_.noSleep=c.checked,_.hideLoginGuide=d.checked,_.hideHaruna=n.checked,_.hideShop=i.checked,_.hideGift=o.checked,_.hideRoomFeed=s.checked,_.hideRoomInfo=r.checked,_.hideNotice=u.checked,_.hideFooter=p.checked,_.lottery=m.checked,window.localStorage.setItem(q,m.checked),_.closeLottery=h.checked,window.localStorage.setItem(J,_.closeLottery),_.noPrivacy=b.checked,Y(H.configKey,_)),D.style.display="block";let e=a.setTimeout((()=>{a.clearTimeout(e),D.style.display="none",f.style.display="none"}),1500)},me=()=>U.length<1?(alert("请先设置弹幕"),!1):(g.checked&&($=Math.floor(Math.random()*U.length)),de(U[$]),++$,$>=U.length&&($=0),!0),he=()=>{let e=0;if(V)a.clearInterval(V),V=null,S.style.background=ne(P)?"rgba(217,157,27,1)":P,S.style.setProperty("--color",P.replace(")",", 0.8)")),S.textContent="开始",E.removeAttribute("disabled");else{if(e=1e3*(ne(E.value)?600:E.value),!me())return;V=a.setInterval(me,e),S.style.background="rgba(255,0,0,1)",S.style.setProperty("--color","rgba(255,0,0,0.8)"),S.textContent="停止",E.setAttribute("disabled","disabled")}},be=(e,t,a,l,d)=>{let n=document.createElement("input");n.type="checkbox",n.id=e,n.checked=!1,n.addEventListener("click",l);let i=document.createElement("label");i.setAttribute("for",e),i.classList.add("switch-check-label");let c=document.createElement("span");c.textContent=t,c.title=a,c.classList.add("danmu-random-switch-button-title");let o=document.createElement("div");return o.classList.add("switch-check"),o.classList.add("switch-check-group"),o.appendChild(n),o.appendChild(i),o.appendChild(c),d.appendChild(o),n},ge=(e,t)=>{t?e.style.removeProperty("display"):e.style.setProperty("display","none","important")},ke=(e,t)=>{if(e.removeAttribute(t),0<e.children.length)for(let a=0;a<e.children.length;a++)ke(e.children[a],t)},ve=(e,t,a)=>{if(e.setAttribute(t,a),0<e.children.length)for(let l=0;l<e.children.length;l++)ve(e.children[l],t,a)},xe=()=>{let e=document.getElementById("switch-login-guide-vm");e&&ge(e,!d.checked)},ye=()=>{let e=document.getElementById("my-dear-haruna-vm");e&&ge(e,!n.checked)},Ce=()=>{let e=document.getElementById("shop-popover-vm");e&&ge(e,!i.checked)},Ee=()=>{let e=document.getElementsByClassName("gift-control-section")[0];e&&ge(e,!o.checked),e=document.getElementById("web-player__bottom-bar__container"),e&&ge(e,!o.checked),e=document.getElementsByTagName("video");for(let t=0;t<e.length;t++){if(!e[t])return;o.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)")}},fe=()=>{let e=document.getElementsByClassName("room-feed")[0];e&&ge(e,!s.checked),e=document.getElementsByClassName("flip-view p-relative")[0],e&&ge(e,!s.checked)},we=()=>{let e=document.getElementsByClassName("room-info-ctnr")[0];e&&ge(e,!r.checked)},Le=()=>{let e=document.getElementsByClassName("right-container")[0];e&&(e.style.setProperty("min-height","auto"),ge(e,!u.checked))},Be=()=>{let e=document.getElementById("link-footer-vm");e&&ge(e,!p.checked)},Ie=()=>{if(b.checked){let e=document.getElementsByClassName("privacy-dialog")[0];e&&(e.id="no-privacy",e.classList.add("not-display"),e.classList.remove("privacy-dialog"),ke(e,"data-v-0f345f8f"))}else{let e=document.getElementById("no-privacy");e&&(e.removeAttribute("id"),e.classList.add("privacy-dialog"),e.classList.remove("not-display"),ve(e,"data-v-0f345f8f",""))}},Ae=e=>{let t=document.getElementById("danmu-setting-panel");if(e&&!t){let t=document.getElementsByClassName("bl-button bl-button--primary")[0];if(!t)return!1;(e=>{let t=document.createElement("div");t.textContent="弹幕设置",t.classList.add("danmu-random-setting-title");let a=document.createElement("div");a.textContent="1.5.7",a.classList.add("danmu-random-setting-title-sub"),t.appendChild(a);let P=document.createElement("div");P.classList.add("danmu-random-setting-tips"),P.innerHTML='任一分组内输入弹幕即可,多条用<span style="color:#dc6b07;margin:0 2px 0 4px;font-weight:700;font-style:normal;">竖线</span>分隔';let F=document.createElement("div");F.classList.add("danmu-random-update-tips"),F.innerHTML='<span style="color:#f00">更新提示:</span>开始按钮动态适配直播间主题';let z=document.createElement("div");z.textContent="分组 1 :",z.classList.add("danmu-group-title"),k=document.createElement("input"),k.type="checkbox",k.id="group1Checkbox",k.checked=!0;let R=document.createElement("label");R.setAttribute("for","group1Checkbox"),R.classList.add("switch-check-label");let G=document.createElement("div");G.classList.add("switch-check"),G.appendChild(k),G.appendChild(R),w=document.createElement("textarea"),w.classList.add("danmu-group-textarea"),w.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let j=document.createElement("div");j.textContent="分组 2 :",j.classList.add("danmu-group-title"),v=document.createElement("input"),v.type="checkbox",v.id="group2Checkbox",v.checked=!0;let H=document.createElement("label");H.setAttribute("for","group2Checkbox"),H.classList.add("switch-check-label");let _=document.createElement("div");_.classList.add("switch-check"),_.appendChild(v),_.appendChild(H),L=document.createElement("textarea"),L.classList.add("danmu-group-textarea"),L.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let K=document.createElement("div");K.textContent="分组 3 :",K.classList.add("danmu-group-title"),x=document.createElement("input"),x.type="checkbox",x.id="group3Checkbox",x.checked=!0;let U=document.createElement("label");U.setAttribute("for","group3Checkbox"),U.classList.add("switch-check-label");let V=document.createElement("div");V.classList.add("switch-check"),V.appendChild(x),V.appendChild(U),B=document.createElement("textarea"),B.classList.add("danmu-group-textarea"),B.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let O=document.createElement("div");O.textContent="分组 4 :",O.classList.add("danmu-group-title"),y=document.createElement("input"),y.type="checkbox",y.id="group4Checkbox",y.checked=!0;let W=document.createElement("label");W.setAttribute("for","group4Checkbox"),W.classList.add("switch-check-label");let $=document.createElement("div");$.classList.add("switch-check"),$.appendChild(y),$.appendChild(W),I=document.createElement("textarea"),I.classList.add("danmu-group-textarea"),I.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let q=document.createElement("div");q.textContent="分组 5 :",q.classList.add("danmu-group-title"),C=document.createElement("input"),C.type="checkbox",C.id="group5Checkbox",C.checked=!0;let J=document.createElement("label");J.setAttribute("for","group5Checkbox"),J.classList.add("switch-check-label");let Q=document.createElement("div");Q.classList.add("switch-check"),Q.appendChild(C),Q.appendChild(J),A=document.createElement("textarea"),A.classList.add("danmu-group-textarea"),A.setAttribute("placeholder","请输入弹幕,多条弹幕请用“|”分隔");let X=document.createElement("div");X.style.margin="20px 0 10px";let Y=document.createElement("div");Y.textContent="以下设置保存之后将适用所有直播间",Y.title="其它直播间请刷新应用设置",Y.classList.add("global-setting-tip"),Y.classList.add("switch-check-group"),X.appendChild(Y),l=document.createElement("input"),l.type="checkbox",l.id="signInCheckbox",l.checked=!0,l.addEventListener("click",ce);let Z=document.createElement("label");Z.setAttribute("for","signInCheckbox"),Z.classList.add("switch-check-label");let ee=document.createElement("span");ee.textContent="打卡弹幕:",ee.title="每日零点发送一条打卡弹幕",ee.classList.add("danmu-random-switch-button-title"),T=document.createElement("input"),T.style.border="0",T.style.width="145px",T.setAttribute("placeholder","输入零点打卡发送的文字");let te=document.createElement("div");te.classList.add("switch-check"),te.classList.add("switch-check-group"),te.appendChild(l),te.appendChild(Z),te.appendChild(ee),te.appendChild(T),X.appendChild(te),c=be("noSleepCheckbox","防止直播间休眠","防止直播间页面一段时间没操作之后进入休眠",Se,X),d=be("hideLoginGuideCheckbox","隐藏播放器底部登录提示","隐藏未登录时播放器底部显示的登录提示",xe,X),n=be("hideHarunaCheckbox","隐藏看板娘立绘","隐藏直播间Haruna立绘",ye,X),i=be("hideShopCheckbox","隐藏播放器左上角购物提示","隐藏播放器左上角的商店购物提示",Ce,X),o=be("hideGiftControlCheckbox","隐藏礼物栏","隐藏播放器底部的礼物栏",Ee,X),s=be("hideRoomFeedCheckbox","隐藏主播动态","隐藏播放器底下主播的动态栏",fe,X),r=be("hideRoomInfoCheckbox","隐藏主播荣耀、简介","隐藏播放器底下主播的荣耀勋章和简介",we,X),u=be("hideNoticeCheckbox","隐藏主播公告","隐藏弹幕列表底下主播的公告",Le,X),p=be("hideFooterCheckbox","隐藏直播间页脚","隐藏直播间底部的网页页脚",Be,X),m=be("lotteryCheckbox","自动参与天选时刻抽奖","自动点击参与按钮,但不是天选时刻开始时就立刻处理,会留有一小段犹豫时间,可以手动处理",Pe,X),h=be("closeLotteryCheckbox","关闭天选时刻","关闭天选时刻弹窗",De,X),b=be("hidePrivacyCheckbox","隐藏隐私提示对话框","隐藏隐私提示登录的对话框,被打码的昵称不保证变回正常",Ie,X),D=document.createElement("span"),D.textContent="设置成功",D.classList.add("danmu-random-setting-success-text");let ae=document.createElement("div");ae.classList.add("danmu-random-setting-success-tips"),ae.appendChild(D);let le=document.createElement("i");le.setAttribute("title","保存"),le.style.padding="5px",le.classList.add("el-button"),le.classList.add("el-icon-check"),le.classList.add("is-circle"),le.addEventListener("click",pe);let de=document.createElement("i");de.setAttribute("title","关闭"),de.style.padding="5px",de.classList.add("el-button"),de.classList.add("el-icon-close"),de.classList.add("is-circle"),de.addEventListener("click",re);let ne=document.createElement("div");ne.classList.add("danmu-random-set-button-container"),ne.appendChild(le),ne.appendChild(de),g=document.createElement("input"),g.type="checkbox",g.id="rdCheckbox",g.checked=!0,Z=document.createElement("label"),Z.setAttribute("for","rdCheckbox"),Z.classList.add("switch-check-label"),ee=document.createElement("span"),ee.textContent="随机从上面的弹幕中选出一条发送",ee.title="将合并所有分组数据,从中随机选出一条发送",ee.classList.add("danmu-random-switch-button-title"),te=document.createElement("div"),te.classList.add("switch-check"),te.appendChild(g),te.appendChild(Z),te.appendChild(ee);let ie=document.createElement("div");ie.classList.add("danmu-random-setting-bottom"),ie.appendChild(ae),ie.appendChild(ne);let oe=document.createElement("div");oe.style.height="calc(98% - 30px - 25px)",oe.appendChild(z),oe.appendChild(G),oe.appendChild(w),oe.appendChild(j),oe.appendChild(_),oe.appendChild(L),oe.appendChild(K),oe.appendChild(V),oe.appendChild(B),oe.appendChild(O),oe.appendChild($),oe.appendChild(I),oe.appendChild(q),oe.appendChild(Q),oe.appendChild(A),oe.appendChild(te),oe.appendChild(X),oe.appendChild(ie),f=document.createElement("div"),f.id="danmu-setting-panel",f.classList.add("danmu-random-setting-panel"),f.appendChild(t),f.appendChild(F),f.appendChild(P),f.appendChild(oe),document.getElementById("aside-area-vm").appendChild(f),S=document.createElement("button"),S.textContent="开始",S.classList.add("danmu-btn"),S.style.setProperty("--color","rgba(217,157,27,0.8)"),S.addEventListener("click",he),M=document.createElement("span"),M.textContent="每",M.classList.add("danmu-text-span"),M.style.marginLeft="4px",E=document.createElement("input"),E.value=600,E.classList.add("danmu-second-input"),E.setAttribute("oninput","this.value = this.value.replace(/[^0-9]/g, '')"),N=document.createElement("span"),N.textContent="秒发送",N.classList.add("danmu-text-span"),N.style.marginRight="4px";let ue=document.createElement("i");ue.classList.add("el-icon-setting");let me=document.createElement("button");me.title="设置",me.classList.add("el-button"),me.classList.add("el-button--mini"),me.classList.add("is-circle"),me.addEventListener("click",se),me.appendChild(ue);let ge=document.createElement("div");ge.style.position="absolute",ge.appendChild(S),ge.appendChild(M),ge.appendChild(E),ge.appendChild(N),ge.appendChild(me),e.appendChild(ge)})(e),P=window.getComputedStyle(t).getPropertyValue("background-color"),N.style.setProperty("background",P),M.style.setProperty("background",P),S.style.setProperty("background",P),S.style.setProperty("--color",P.replace(")",", 0.8)")),(()=>{let e=X(ae,null);e&&(j.version===e.version?j=e:2===e.version?(j.data1=e.data1,j.data2=e.data2,j.data3=e.data3,j.data4=e.data4,j.data5=e.data5,Y(ae,j)):(j.data1.values=e.data1?e.data1:j.data1.values,j.data2.values=e.data2?e.data2:j.data2.values,j.data3.values=e.data3?e.data3:j.data3.values,j.data4.values=e.data4?e.data4:j.data4.values,j.data5.values=e.data5?e.data5:j.data5.values,Y(ae,j))),H.configKey&&(_=X(H.configKey,{}),T.value=ne(_.signInText)?"":_.signInText,ne(_.lottery)&&(_.lottery=!1),ne(_.closeLottery)&&(_.closeLottery=!1)),oe(),w.value=j.data1.values.join("|"),L.value=j.data2.values.join("|"),B.value=j.data3.values.join("|"),I.value=j.data4.values.join("|"),A.value=j.data5.values.join("|"),ue()})()}return!0},Te=e=>{K[K.length]=a.setInterval((()=>{Ae(e)?ie():(--W,0>=W&&ie())}),1500)},Se=()=>{c.checked?F||(F=a.setInterval((()=>{z=a.setTimeout((()=>{a.clearTimeout(z),document.body.dispatchEvent(new MouseEvent("mousemove",{bubbles:!0}))}),3e3*Math.random())}),17e3)):(F&&(a.clearInterval(F),F=null),z&&(a.clearTimeout(z),z=null))},Me=e=>{if(!e)return;if("false"===window.localStorage.getItem(q))return void("true"===window.localStorage.getItem(J)&&Ne());let t=a.setTimeout((()=>{a.clearTimeout(t),e.click(),"true"===window.localStorage.getItem(J)&&(t=a.setTimeout((()=>{a.clearTimeout(t),Ne()}),1e3))}),1e4)},Ne=()=>{let e=document.getElementsByClassName("close-btn bg-contain")[0];e&&e.click()},Pe=()=>{window.localStorage.setItem(q,m.checked)},De=()=>{window.localStorage.setItem(J,h.checked)};(()=>{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-title-sub{display:inline-block;color:#ee8b8b;height:24px;vertical-align:sub;-webkit-transform:scale(0.7);}.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;}.danmu-btn{min-width:65px;height:24px;font-size:12px;border-radius:4px;color:rgb(255,255,255);background:rgb(217,157,27);border:0px;cursor:pointer;}.danmu-btn:hover{background:var(--color)!important;}.danmu-text-span{color:rgb(255, 255, 255);font-size:12px;background:rgb(236,108,27);}.danmu-second-input{width:25px;height:15px;margin:0px 3px;border:0px;border-radius:3px;}.not-display{display:none !important;}',document.head.appendChild(t)})(),window.runStart=()=>{if((()=>{if(!H.version)return!0;if(ee===H.version)return!1;{let e=H.version.split("."),t=ee.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}})())return void(window.location.href=te);let e=document.getElementsByClassName("particitation-btn")[0];e?Me(e):R=a.setTimeout((()=>{a.clearTimeout(R),e=document.getElementsByClassName("particitation-btn")[0],e&&Me(e)}),2e3);let t=document.getElementsByClassName("bottom-actions p-relative")[0];if(t)Te(t);else{let e=0;G=a.setInterval((()=>{t=document.getElementsByClassName("bottom-actions p-relative")[0],t?(a.clearInterval(G),Te(t)):e++>=10&&a.clearInterval(G)}),1e3)}},window.arrayInfo=()=>{},window.setGmNotice=e=>e,window.setGmGetValue=e=>X=e,window.setGmSetValue=e=>Y=e,window.setGmDelValue=e=>e,window.setParentData=e=>H=e,window.autoSendDanmuModuleLoaded=!0}();