XiaoJieRoomAssistant

RoomAssistant

目前為 2019-05-11 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/382906/697090/XiaoJieRoomAssistant.js

var $=window.jQuery;var x,y;var dragFlag=false,sighInFlag=true,giftFlag=true,activateFlag=false,loopFlag=false,qfFlag=false,closeFlag=false;var lastText="",loopText="",text="",lastLog="";var nickname=decodeURI(getCookie('acf_nickname'));var lastGiftNum=0,giftNum=0,lastBetCount=-1,betSelect,ywSelected,color,giftStatusCheck,giftOpen,qf,exqf,creditInterval,chatSendClick;var mapsJSON,creditJSON,onlineJSON;var fullTailText=GM_getValue('fullTailText',''),tailFlag=1;var lastCredit=GM_getValue('lastCredit',-1),lastMaxCredit=GM_getValue('lastMaxCredit',-1),myCredit=GM_getValue('myCredit',-1);var log=GM_getValue('log','');var year,month,date,h,m,s,now,nowYMD,nowHMS;var roomStatus=GM_getValue('lastRoomStatus',0),lastRoomStatus=GM_getValue('lastRoomStatus',-1);var notifyText;var loopInterval,intervalTime=3000;var pathName=window.location.pathname;var height;var checkMapsResult="",checkCount=GM_getValue('checkCount',2);var a=0,b=0,c=0,d=0;var div=document.createElement('div');var dragDiv=document.getElementById("drag");div.setAttribute('id','newDiv');div.style.setProperty('position','fixed');div.style.setProperty('height',height+'px');div.style.setProperty('width','258px');div.style.setProperty('background','rgba(155, 155, 155, 0.8)');div.style.setProperty('left','3%');div.style.setProperty('top','10%');div.style.setProperty('border','1px solid #96c2f1');div.style.setProperty('z-index','999');div.style.setProperty('box-shadow','0 1px 5px 4px #888888');div.innerHTML=unescape("%3Csection%20id%3D%22drag%22%20readonly%3D%22value%22%20style%3D%22background%3Awhite%22%3E%0A%20%20%3Cp%20style%3D%22font-weight%3A%20bold%3Bheight%3A%2030px%3Btext-align%3A%20left%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%3Ca%20href%3D%22https%3A//www.douyu.com/74751%22%3B%3E%u8D85%u7EA7%u5C0F%u6840%3C/a%3E%u623F%u95F4%u5C0F%u52A9%u624B%0A%20%20%20%20%3Cspan%20id%3D%22online%22%3E%3C/span%3E%0A%20%20%20%20%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_donate%22%20style%3D%22width%3A%2065px%3Bmargin-top%3A%204px%3Bmargin-left%3A%2027px%3Bfont-weight%3A%20bold%3Bcolor%3Ared%3B%22%20value%3D%22%u652F%u6301%u4E00%u4E0B%22%20%3B%3E%3C/p%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22fnhide%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Cp%20style%3D%22height%3A%2022px%3B%22%3E%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hidecredit%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u4E2A%u4EBA%u4FE1%u606F%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hidemaps%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u5730%u56FE%u4FE1%u606F%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hideinstructions%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u529F%u80FD%u6307%u4EE4%3C/p%3E%0A%20%20%3Cp%20style%3D%22height%3A%2022px%3B%22%3E%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hidedanmu%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u5F39%u5E55%u53D1%u9001%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hideqfqd%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3Amiddle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u62A2%u5206%u7B7E%u5230%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hidebet%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u7ADE%u731C%u4FE1%u606F%3C/p%3E%0A%20%20%3Cp%20style%3D%22height%3A%2022px%3B%22%3E%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22hidelog%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u65E5%u5FD7%u4FE1%u606F%0A%20%20%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_fnhide%22%20style%3D%22width%3A%2075px%3Bmargin-left%3A%2012px%3Bmargin-right%3A%205px%3B%22%20value%3D%22%u663E%u793A%u2714%uFE0F%u533A%u57DF%22%3E%0A%20%20%20%20%3Cselect%20id%3D%22watchstyle%22%20style%3D%22height%3A22px%3Bwidth%3A%2075px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%20%20%3Coption%3E%u5B8C%u6574%u6A21%u5F0F%3C/option%3E%0A%20%20%20%20%20%20%3Coption%3E%u6781%u7B80%u6A21%u5F0F%3C/option%3E%0A%20%20%20%20%20%20%3Coption%3E%u6302%u673A%u6A21%u5F0F%3C/option%3E%3C/select%3E%0A%20%20%3C/p%3E%0A%20%20%20%20%3C/section%3E%0A%3Csection%20id%3D%22credit%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Ctextarea%20id%3D%22showcredit%22%20style%3D%22height%3A96px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22maps%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Ctextarea%20id%3D%22showmaps%22%20style%3D%22height%3A112px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22instructions%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_fullmapsmess%22%20style%3D%22width%3A75px%3B%22%20value%3D%22%u5730%u56FE%u8BE6%u60C5%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_help%22%20style%3D%22width%3A75px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3B%22%20value%3D%22%u5E2E%u52A9%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_renew%22%20style%3D%22width%3A75px%3B%22%20value%3D%22%u5237%u65B0%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_getcredit%22%20style%3D%22width%3A75px%3B%22%20value%3D%22%23%u62A2%u5206%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_joingroup%22%20style%3D%22width%3A75px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bmargin-top%3A%205px%3B%22%20value%3D%22%23%u5165%u56E2%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_vip%22%20style%3D%22width%3A75px%3B%22%20value%3D%22%23%u8D2D%u4E70%u4F1A%u5458%22%3E%0A%20%20%3Cselect%20id%3D%22betselect%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ared%22%3E%231%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ablue%22%3E%232%3C/option%3E%3C/select%3E%0A%20%20%3Cselect%20id%3D%22betcredit%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bmargin-top%3A5px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E%u538B1/5%3C/option%3E%0A%20%20%20%20%3Coption%3E%u538B1/4%3C/option%3E%0A%20%20%20%20%3Coption%3E%u538B1/3%3C/option%3E%0A%20%20%20%20%3Coption%3E%u538B%u4E00%u534A%3C/option%3E%0A%20%20%20%20%3Coption%3E%u5168%u538B%u4E86%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_confirm%22%20style%3D%22height%3A%2022px%3Bwidth%3A%2075px%3Bcolor%3A%20red%3B%22%20value%3D%22%u538B%u5206%22%20title%3D%22%u56E2%u706D%u9700%u8981%u51E0%u5173%uFF1F%uFF01%22%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22danmu%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Ctextarea%20id%3D%22write%22%20style%3D%22float%3A%20left%3Bheight%3A%2047px%3Bwidth%3A%20153px%3Bmargin-right%3A%209px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20placeholder%3D%22%u8BF7%u8F93%u5165%u8981%u53D1%u9001%u7684%u5F39%u5E55%u5185%u5BB9%22%3E%3C/textarea%3E%0A%20%20%3Cp%3E%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22enter%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20bottom%3B%22%3E%26nbsp%3BEnter%u53D1%u9001%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22chattail%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20bottom%3B%22%3E%26nbsp%3B%u5C0F%u5C3E%u5DF4%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22random%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20bottom%3B%22%3E%26nbsp%3B%u968F%u673A%u6570%3C/p%3E%0A%3Cp%3E%0A%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22loop%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%3E%26nbsp%3B%u5FAA%u73AF%u53D1%u9001%0A%20%20%3Cselect%20id%3D%22loopEnd%22%20style%3D%22height%3A22px%3Bwidth%3A%2075px%3Bmargin-left%3A%2012px%3Bmargin-right%3A%205px%3Bmargin-top%3A5px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E%u53D1%u900110%u6B21%u540E%u505C%u6B62%3C/option%3E%0A%20%20%20%20%3Coption%3E%u53D1%u900120%u6B21%u540E%u505C%u6B62%3C/option%3E%0A%20%20%20%20%3Coption%3E%u53D1%u900150%u6B21%u540E%u505C%u6B62%3C/option%3E%0A%20%20%20%20%3Coption%3E%u624B%u52A8%u505C%u6B62%3C/option%3E%0A%20%20%20%20%3Coption%3E%u62BD%u5956%u7ED3%u675F%u65F6%u505C%u6B62%3C/option%3E%0A%20%20%20%20%3Coption%3E%u79EF%u5206%u4E0D%u518D%u589E%u52A0%u65F6%u505C%u6B62%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22range%22%20id%3D%22loopintervaltime%22%20min%3D%223%22%20max%3D%22100%22%20step%3D%221%22%20value%3D%223%22%20style%3D%22width%3A%2075px%3Bvertical-align%3A%20middle%3B%22title%3D%22%u5F53%u524D%u5FAA%u73AF%u968F%u673A%u65F6%u95F4%u95F4%u9694%u4E3A3%7E8%u79D2%22%3B%0A%3C/p%3E%0A%20%20%3Cselect%20id%3D%22danmuselect%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E%u666E%u901A%u5F39%u5E55%3C/option%3E%0A%20%20%20%20%3Coption%3E%u9AD8%u7EA7%u5F39%u5E55%3C/option%3E%0A%20%20%20%20%3Coption%3E%u4E0A%u7535%u89C6%3C/option%3E%3C/select%3E%0A%20%20%3Cselect%20id%3D%22color%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bmargin-top%3A5px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20disabled%3D%22disabled%22%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ablue%22%3E%u84DD%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Agreen%22%3E%u7EFF%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Apink%22%3E%u7C89%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Aorange%22%3E%u6A59%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Apurple%22%3E%u7D2B%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ared%22%3E%u7EA2%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_chatsend%22%20style%3D%22height%3A%2022px%3Bwidth%3A%2075px%3Bcolor%3A%20black%3B%22%20value%3D%22%u53D1%u9001%22%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22qfqd%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3Bdisplay%3A%20block%3B%22%3E%0A%20%20%3Cp%20style%3D%22height%3A%2027px%3B%22%3E%0A%20%20%20%20%3Cselect%20id%3D%22formatselect%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%20%20%3Coption%3E%u62A2%u5206/%u7B7E%u5230+%u5C0F%u5C3E%u5DF4%3C/option%3E%0A%20%20%20%20%20%20%3Coption%3E%u62A2%u5206/%u7B7E%u5230+%u5C0F%u5C3E%u5DF4+%u65F6%u95F4%3C/option%3E%0A%20%20%20%20%20%20%3Coption%3E%u62A2%u5206/%u7B7E%u5230+%u65F6%u95F4+%u5C0F%u5C3E%u5DF4%3C/option%3E%3C/select%3E%0A%20%20%20%20%3Ctextarea%20id%3D%22tail%22%20style%3D%22height%3A%2016px%3Bwidth%3A%2069px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bvertical-align%3A%20bottom%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20placeholder%3D%22%u5C0F%u5C3E%u5DF4%22%3E%3C/textarea%3E%0A%20%20%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_tailsave%22%20style%3D%22width%3A75px%3Bmargin-right%3A%20auto%3B%22%20value%3D%22%u4FDD%u5B58%22%3E%3C/p%3E%0A%20%20%3Cp%20id%3D%20%22fn%22%3B%3E%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22autoqf%22%20style%3D%22height%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20middle%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u81EA%u52A8%u62A2%u5206%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22autoqd%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u81EA%u52A8%u7B7E%u5230%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22autogetreward%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u81EA%u52A8%u9886%u89C2%u770B%u5B9D%u7BB1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22autodanmu%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%20%3E%26nbsp%3B%u81EA%u52A8%u53C2%u4E0E%u5F39%u5E55%u5F00%u706B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22autodraw%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%20%3E%26nbsp%3B%u81EA%u52A8%u53C2%u4E0E%u5F39%u5E55%u62BD%u5956%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%0A%20%20%20%20%3Cinput%20class%3D%22magic-checkbox%22%20type%3D%22checkbox%22%20id%3D%22onlinenotify%22%20style%3D%22margin-left%3A%207xp%3Bheight%3A17px%3Bwidth%3A17px%3Bvertical-align%3A%20text-top%3B%22%20checked%3D%22checked%22%3E%26nbsp%3B%u5728%u64AD%u901A%u77E5%3C/p%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22log%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%20%20%3Ctextarea%20id%3D%22log%22%20style%3D%22height%3A96px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_cleanlog%22%20style%3D%22width%3A%2065px%3B%22%20value%3D%22%u6E05%u7A7A%u65E5%u5FD7%22%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_checksamemaps%22%20style%3D%22width%3A%20105px%3B%20margin-right%3A1px%22%20%20value%3D%22%u67E5%u8BE2%u5730%u56FE%u662F%u5426%u73A9%u8FC7%22%3B%20title%3D%22%u4ECA%u65E5%u8FD8%u53EF%u67E5%u8BE22%u6B21%22%3B%20disabled%20%3D%20%22disabled%22%3B%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_breakchecksamemaps%22%20style%3D%22width%3A65px%3B%22%20value%3D%22%u4E2D%u65AD%u67E5%u8BE2%22%20disabled%20%3D%20%22disabled%22%3B%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22bet%22%20style%3D%22margin-top%3A%205px%3Bmargin-left%3A%207px%3Bmargin-right%3A%207px%3B%22%3E%0A%3Csection%20id%3D%22bet1%22%3E%0A%20%20%3Ctextarea%20id%3D%22betmess%22%20style%3D%22height%3A80px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%20%20%3Cselect%20id%3D%22ywselect%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ared%22%3E%u5DE6%u8FB9%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ablue%22%3E%u53F3%u8FB9%3C/option%3E%3C/select%3E%0A%20%20%3Cselect%20id%3D%22ywnum%22%20style%3D%22height%3A22px%3Bwidth%3A%2075px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E100%3C/option%3E%0A%20%20%20%20%3Coption%3E1000%3C/option%3E%0A%20%20%20%20%3Coption%3E10000%3C/option%3E%0A%20%20%20%20%3Coption%3EALL%20IN%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_ywconfirm%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bcolor%3Ared%3B%22%20value%3D%22%u538B%u9C7C%u4E38%22%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22bet2%22%20style%3D%22margin-top%3A%205px%22%3B%3E%0A%20%20%20%20%3Ctextarea%20id%3D%22betmess1%22%20style%3D%22height%3A80px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%20%20%3Cselect%20id%3D%22ywselect1%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ared%22%3E%u5DE6%u8FB9%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ablue%22%3E%u53F3%u8FB9%3C/option%3E%3C/select%3E%0A%20%20%3Cselect%20id%3D%22ywnum1%22%20style%3D%22height%3A22px%3Bwidth%3A%2075px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E100%3C/option%3E%0A%20%20%20%20%3Coption%3E1000%3C/option%3E%0A%20%20%20%20%3Coption%3E10000%3C/option%3E%0A%20%20%20%20%3Coption%3EALL%20IN%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_ywconfirm1%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bcolor%3Ared%3B%22%20value%3D%22%u538B%u9C7C%u4E38%22%3E%0A%3C/section%3E%0A%3Csection%20id%3D%22bet3%22%20style%3D%22margin-top%3A%205px%22%3E%0A%20%20%20%20%20%20%3Ctextarea%20id%3D%22betmess2%22%20style%3D%22height%3A80px%3Bwidth%3A%20237px%3Bline-height%3A12pt%3Boverflow%3Ahidden%3Bresize%3Anone%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%20readonly%3D%22value%22%3E%3C/textarea%3E%0A%20%20%3Cselect%20id%3D%22ywselect2%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ared%22%3E%u5DE6%u8FB9%3C/option%3E%0A%20%20%20%20%3Coption%20style%3D%22color%3Ablue%22%3E%u53F3%u8FB9%3C/option%3E%3C/select%3E%0A%20%20%3Cselect%20id%3D%22ywnum2%22%20style%3D%22height%3A22px%3Bwidth%3A%2075px%3Bmargin-left%3A%205px%3Bmargin-right%3A%206px%3Bbackground-color%3Ahsla%280%2C0%25%2C100%25%2C.4%29%3B%22%3E%0A%20%20%20%20%3Coption%3E100%3C/option%3E%0A%20%20%20%20%3Coption%3E1000%3C/option%3E%0A%20%20%20%20%3Coption%3E10000%3C/option%3E%0A%20%20%20%20%3Coption%3EALL%20IN%3C/option%3E%3C/select%3E%0A%20%20%3Cinput%20type%3D%22button%22%20id%3D%22bnt_ywconfirm2%22%20style%3D%22height%3A22px%3Bwidth%3A75px%3Bcolor%3Ared%3B%22%20value%3D%22%u538B%u9C7C%u4E38%22%3E%0A%20%20%3C/section%3E%0A%3C/section%3E");document.body.appendChild(div);div.style.left=GM_getValue('left','3%');div.style.top=GM_getValue('top','10%');$("#autoqf").prop("checked",GM_getValue('autoQf',false));$("#autoqd").prop("checked",GM_getValue('autoQd',false));$("#enter").prop("checked",GM_getValue('enter',false));$("#onlinenotify").prop("checked",GM_getValue('onlineNotify',false));var autoFnWidth=$('section#qfqd').width();$("p#fn").css("width",autoFnWidth).attr('style','overflow-x: auto;white-space: nowrap;height: 40px;');$(document).keypress(function(event){if(event.keyCode==13&&document.getElementById("enter").checked){$("#bnt_chatsend").trigger("click")}});var arr=new Array("bnt_getcredit","bnt_joingroup","bnt_vip","#抢分","#入团","#购买会员");for(var i=0;i<arr.length/2;i++){addEvent(arr[i],arr[i+arr.length/2])}var creditRankJSON,myCreditRank="",myMaxCreditRank="";creditRank("credit","myCreditRank",lastCredit);creditRank("maxCredit","myMaxCreditRank",lastMaxCredit);var lastWatch=GM_getValue('lastWatch','完整模式');if(lastWatch=="极简模式"){$("#watchstyle").val("极简模式")}else if(lastWatch=="挂机模式"){$("#watchstyle").val("挂机模式")}watchStyle();var loopIntervalTime=3000;var mapsMessInterval,autoDanmuInterval,autoDrawInterval;$(document).ready(function(){try{recoverStatus();activate();creditMess();mapsMess();betMess();online();notify();logMess()}catch(err){console.log(err)};var clearAD=setInterval(function(){removeAD()},1000);setTimeout(function(){clearInterval(clearAD)},10000);var revardCount=0;var reward=setInterval(function(){if(document.getElementById("autogetreward").checked){revardCount++;if($('span.RewardModule-notify').length!=0){getReward();revardCount=0}if($('RewardModule-iconnew.done').length!=0||revardCount>30){clearInterval(reward)}}},60000);creditInterval=setInterval(function(){creditMess()},30000);mapsMessInterval=setInterval(function(){if(onlineJSON.data.room_status=="1"){mapsMess()}},5000);setInterval(function(){online();if(document.getElementById("autoqd").checked){sighIn()}},5000);autoDanmuInterval=setInterval(autoDanmu,5000);autoDrawInterval=setInterval(autoDraw,5000);setInterval(function(){giftStatusCheck=$('div.TreasureStatus-text').length;giftOpen=$('.TreasureStatus-bg.is-open').length;if(giftStatusCheck==0){giftFlag=true}if(document.getElementById("autoqf").checked){exGiftCheck();if(giftFlag){giftCheck()}}betMess()},1000);});function autoDanmu(){if(document.getElementById("autodanmu").checked&&$('div.ChatSend-button').text()=='开火'){clearInterval(autoDanmuInterval);autoDanmuInterval=null;clearInterval(autoDrawInterval);autoDrawInterval=null;var fireText=lastText==''?'666666':lastText;$('textarea#write').val(fireText);$('#loop').prop("checked",true);$("select#loopEnd").find("option:contains('发送10次后停止')").attr("selected",true);$("#bnt_chatsend").trigger("click")}}function autoDraw(){if(document.getElementById("autodraw").checked&&$('div.LotteryContainer').length!=0){if($('span.ULotteryStart-danmuDesc.UserLottery-ellipse.is-coping').length!=0){$('#chattail').prop("checked",false);clearInterval(autoDanmuInterval);autoDanmuInterval=null;clearInterval(autoDrawInterval);autoDrawInterval=null;var drawText=$('span.ULotteryStart-danmuDesc.UserLottery-ellipse.is-coping').text();$('#loop').prop("checked",true);$("select#loopEnd").find("option:contains('抽奖结束时停止')").attr("selected",true);if($('span.ULotteryStart-copy').text()=='复制'){setTimeout(function(){$('textarea#write').val(drawText);$("#bnt_chatsend").trigger("click")},3000)}else{if($('div.ULotteryStart-rule').children().text().indexOf("粉丝")==0){$('span.ULotteryStart-joinBtnText').click();}setTimeout(function(){$('textarea#write').val(drawText.substring(3));$("#bnt_chatsend").trigger("click")},3000)}$('span.LotteryContainer-close').click()}}}function setCheckBox(){if(pathName=="/74751"){GM_setValue('autoQf',document.getElementById("autoqf").checked);GM_setValue('autoQd',document.getElementById("autoqd").checked)}GM_setValue('enter',document.getElementById("enter").checked);GM_setValue('chatTail',document.getElementById("chattail").checked);GM_setValue('random',document.getElementById("random").checked);GM_setValue('loop',document.getElementById("loop").checked);GM_setValue('autoGetReward',document.getElementById("autogetreward").checked);GM_setValue('autoDanmu',document.getElementById("autodanmu").checked);GM_setValue('autoDraw',document.getElementById("autodraw").checked);GM_setValue('onlineNotify',document.getElementById("onlinenotify").checked)}function removeAD(){$("div.Bottom-ad").hide();$("div.SignBaseComponent-sign-ad").remove();$("div.SignBaseComponent-sign-box.RoomChat.Barrage-chat-ad").remove();$("div.SysSign-Ad").remove();$("div.GuessGameAdContainer").hide();$("div.PlayerToolbar-signCont").remove();$("div[class*='recommendAD']").remove();$("div[class*='recommendApp']").remove();$("div.YzMakeFriends.is-active").remove()}function watchStyle(){var watch=$("#watchstyle").find("option:selected").text();if(watch=='完整模式'){$("aside#js-aside.layout-Aside").show();$("div#js-bottom.layout-Bottom").show();$("div#js-player-title.layout-Player-title").show();$("header#js-header.layout-Header").show();$("main.layout-Main").removeAttr("style");$("section.layout-Container").removeAttr("style");$("div#js-background-holder.Background-holder").show();$("div.layout-Main").removeAttr("style");$("div#js-ad-map.layout-Bottom-forDiy").show();$("div#js-room-activity").show();$("div[class*='wfs-']").click();$("div[class*='wfs-exit-']").click()}else if(watch=='极简模式'){$("aside#js-aside.layout-Aside").hide();$("div#js-bottom.layout-Bottom").hide();$("div#js-player-title.layout-Player-title").hide();$("header#js-header.layout-Header").hide();$("main.layout-Main").css("cssText","max-width:100%;width:100%;margin:0px;padding:0px;");$("section.layout-Container").css("padding","0px");$("div#js-background-holder.Background-holder").hide();$("div.layout-Main").css("cssText","max-width:100%!important;width:100%!important;");$("div#js-ad-map.layout-Bottom-forDiy").hide();$("div#js-room-activity").hide();$("div[class*='bc-wrapper']").hide();$('div.layout-Main').parent("div[class*='bc-wrapper']").attr('style','display:block;');$('section.layout-Container').attr('style','padding-top:0px;background:none;');$("div[class*='wfs-']").click();$("div[class*='wfs-exit-']").click()}else{var count=1;var srcRemove=setInterval(function(){if($("video[id*='__video']").length!=0){setTimeout(function(){$("video[id*='__video']").attr("src","");$("div.layout-Player-videoMain").remove()},1000);console.log("blocked live stream");clearInterval(srcRemove)}if(count>30){clearInterval(srcRemove)}count++},500);$("div.layout-Player-videoMain").hide();$("aside#js-aside.layout-Aside").hide();$("div#js-bottom.layout-Bottom").hide();$("div#js-player-title.layout-Player-title").hide();$("header#js-header.layout-Header").hide();$("div#js-player-guessgame.layout-Player-guessgame").hide();$("div#js-player-toolbar.layout-Player-toolbar").hide();$("main.layout-Main").css("cssText","max-width:100%;width:100%;margin:0px;padding:0px;");$("section.layout-Container").css("padding","0px");$("div#js-background-holder.Background-holder").hide();$("div.layout-Main").css("cssText","max-width:100%!important;width:100%!important;");$("div#js-room-activity").hide();$("div#js-ad-map.layout-Bottom-forDiy").hide();$("div[class*='bc-wrapper']").hide();$('div.layout-Main').parent("div[class*='bc-wrapper']").attr('style','display:block;');$('section.layout-Container').attr('style','padding-top:0px;background:none;')}if(watch!=lastWatch){if(lastWatch=="挂机模式"){window.location.reload()}lastWatch=watch;GM_setValue('lastWatch',lastWatch)}}function getNow(){function fix(s){return s<10?'0'+s:s}var myDate=new Date();year=myDate.getFullYear();month=fix(myDate.getMonth()+1);date=fix(myDate.getDate());h=fix(myDate.getHours());m=fix(myDate.getMinutes());s=fix(myDate.getSeconds());now=year+'-'+month+"-"+date+" "+h+':'+m+":"+s;nowYMD=year+'-'+month+"-"+date;nowHMS=h+':'+m+":"+s}function notify(){var notificationDetails={text:unescape("*%u732B%20*%u5609%u5609%20@%u82F9%u679CDY%20%u533F%u540D%u5927%u4F6C%20*%u8D85%u7FA4%0A%u70B9%u6211%u67E5%u770B%u65B0%u7248%u672C%u9884%u544A%u3001tips%u3001%u652F%u6301%uFF01"),title:"感谢以下水友对本插件的支持",image:"https://apic.douyucdn.cn/upload/avatar/002/86/30/15_avatar_big.jpg",onclick:function(){window.open("https://note.youdao.com/ynoteshare1/index.html?id=a667b6a4cf64b3c053ee091d448f2891&type=note")}};var lastDate=GM_getValue('date',0);getNow();if(nowYMD!=lastDate){GM_notification(notificationDetails);compareCredit(lastDate);lastRoomStatus=-1;GM_setValue('date',nowYMD);GM_setValue('checkCount',2)}}function fnHide(){var a=document.getElementById("hidecredit").checked,b=document.getElementById("hidemaps").checked,c=document.getElementById("hideinstructions").checked,d=document.getElementById("hidedanmu").checked,e=document.getElementById("hideqfqd").checked,f=document.getElementById("hidebet").checked,g=document.getElementById("hidelog").checked;var arr1=new Array(a,b,c,d,e,f,g,"credit","maps","instructions","danmu","qfqd","bet","log");var arr2=new Array(a,b,c,d,e,f,g,"#hidecredit","#hidemaps","#hideinstructions","#hidedanmu","#hideqfqd","#hidebet","#hidelog");var trueheight=$('section#drag').outerHeight(true)+$('section#fnhide').outerHeight(true),height;for(var i=0;i<arr2.length/2;i++){if(pathName=="/74751"){GM_setValue(arr2[i+arr2.length/2],arr2[i])};var name="section#"+arr1[i+arr1.length/2];height=$(name).outerHeight(true);if(arr1[i]&&height!=null){$(name).show();trueheight+=height}else{$(name).hide()}}if(betcount!=0||!f){trueheight+=5}$("#newDiv").css("height",trueheight)}function addEvent(id,str){document.getElementById(id).addEventListener('click',function(event){danmu(str)},false)}function renew(){creditMess();mapsMess();betMess();logMess()}function getReward(){$('div.RewardModule-toggle').click();$('div.RewardModal.super').hide();var n=('span.RewardM-text.enable').length;for(var i=0;i<n;i++){$('span.RewardM-text.enable').eq(i).click()}$('div.RewardModule-toggle').click()}function online(){GM_xmlhttpRequest({method:"GET",url:"http://open.douyucdn.cn/api/RoomApi/room/74751",onload:function(response){onlineJSON=JSON.parse(response.responseText);roomStatus=onlineJSON.data.room_status;if(onlineJSON.data.room_status=="1"){$('span#online').text('直播中');$('span#online').css('color','red')}else{$('span#online').text('已下播');$('span#online').css('color','blue')}}});if(roomStatus!=lastRoomStatus){if(roomStatus==1){if(document.getElementById("onlinenotify").checked){notifyText={text:"超级小桀已开播,点我直达直播间",title:"超级小桀房间小助手提醒",image:"https://apic.douyucdn.cn/upload/avatar/002/86/30/15_avatar_big.jpg",onclick:function(){window.open("https://www.douyu.com/74751")}};GM_notification(notifyText)}}else{var count=1;var close=setInterval(function(){if(($('span.dy-ModalRadius-close-x').length!=0)){$('span.dy-ModalRadius-close-x').click();closeFlag=true};if(closeFlag||count>30){clearInterval(close);close=null;closeFlag=false};count++},1000)}}GM_setValue('lastRoomStatus',roomStatus);lastRoomStatus=roomStatus};function creditMess(){getNow();if(nickname.length==0){$("#showcredit").val("个人信息:     更新时间:"+nowHMS+"\n暂未查询到您的个人信息。\n请登录您的斗鱼帐号!")}else{GM_xmlhttpRequest({timeout:5000,method:"GET",url:"http://api.xiaojie666.com/xiaojie/credit/query.do?nickName="+nickname,ontimeout:function(response){$("#showcredit").val("个人信息:     更新时间:"+nowHMS+"\n当前网络异常或服务器异常,请检查当前网络或登录xiaojie666.com查询服务器状态。")},onload:function(response){creditJSON=JSON.parse(response.responseText);var viptime=new Date(creditJSON.vipDate),showvipdate;showvipdate=getTime(viptime)=="1970年01月01日"?'未购买':getTime(viptime);$("#showcredit").val("个人信息:     更新时间:"+nowHMS+"\n昵称:"+creditJSON.nickName+"\n总赚得积分:"+creditJSON.earnedCredit+"\n历史最高积分:"+creditJSON.maxCredit+"   排名:"+myMaxCreditRank+"\n当前积分:"+creditJSON.credit+"   排名:"+myCreditRank+"\n会员到期时间:"+showvipdate);compareCreditQf(lastCredit,creditJSON.credit);c=creditJSON.maxCredit;d=creditJSON.credit;if(lastMaxCredit<creditJSON.maxCredit){myMaxCreditRank=creditRank("maxCredit","myMaxCreditRank",creditJSON.maxCredit);GM_setValue('lastMaxCredit',creditJSON.maxCredit);lastMaxCredit=GM_getValue('lastMaxCredit',0)};if(lastCredit!=creditJSON.credit){myCreditRank=creditRank("credit","myCreditRank",creditJSON.credit);var diffCredit=creditJSON.credit-lastCredit;diffCredit>0?diffCredit="+"+diffCredit:diffCredit;GM_setValue('lastCredit',creditJSON.credit);lastCredit=creditJSON.credit;log=nowHMS+" "+diffCredit+"积分 当前积分为:"+creditJSON.credit+"\n"+log;logMess()}}})}}function creditRank(myCreditClass,myRankClass,myCredit){var i;GM_xmlhttpRequest({method:"GET",url:"http://api.xiaojie666.com/xiaojie/credit/rank.do?order="+myCreditClass,onload:function(response){creditRankJSON=JSON.parse(response.responseText);var length=creditRankJSON.length;if(myRankClass=="myCreditRank"){console.log("当前积分排名中");if(myCredit>=creditRankJSON[length-1].credit){for(i=0;i<creditRankJSON.length;i++){console.log((i+1)+":"+creditRankJSON[i].nickName);myCreditRank="数据库未更新";if(nickname==creditRankJSON[i].nickName){myCreditRank=i+1;return}}}else{myCreditRank="未上榜";return}}else if(myRankClass=="myMaxCreditRank"){console.log("历史最高积分排名中");if(myCredit>=creditRankJSON[length-1].maxCredit){for(i=0;i<creditRankJSON.length;i++){console.log((i+1)+":"+creditRankJSON[i].nickName);myMaxCreditRank="数据库未更新";if(nickname==creditRankJSON[i].nickName){myMaxCreditRank=i+1;return}}}else{myMaxCreditRank="未上榜";return}}}})}function getTime(timestamp){var myTime=new Date(timestamp);var fixYear=myTime.getFullYear();var fixMonth=myTime.getMonth()+1;var fixDate=myTime.getDate();return fixYear+"年"+fixMonth+"月"+fixDate+"日"}function mapsMess(){getNow();GM_xmlhttpRequest({timeout:5000,method:"GET",url:"http://api.xiaojie666.com/xiaojie/levelrecord/list.do?page=0&rows=1",ontimeout:function(response){$("#showmaps").val("地图信息:     更新时间:"+nowHMS+"\n当前网络异常或服务器异常,请检查当前网络或登录xiaojie666.com查询服务器状态。")},onload:function(response){mapsJSON=JSON.parse(response.responseText);var lifetime=mapsJSON.levelRecords[0].lifeTime,showpassdate;var min=parseInt(lifetime/60);var sec=lifetime%60;showpassdate=min+"分"+sec+"秒";$("#showmaps").val("地图信息:     更新时间:"+nowHMS+"\nID:"+mapsJSON.levelRecords[0].levelId+"\n国家:"+mapsJSON.levelRecords[0].creator_ntd_origin_zh+"\n全球尝试次数:"+mapsJSON.levelRecords[0].attempts+"\n通过率:"+(mapsJSON.levelRecords[0].clearrate*100).toFixed(2)+"%\n地图名:"+mapsJSON.levelRecords[0].name_zh+"\n通关尝试次数:"+(mapsJSON.levelRecords[0].deathCount+1)+"    用时:"+showpassdate)}})}var sameMapsChecked,timeCount;function checkSameMaps(){alert(unescape("%u5DF2%u544A%u77E5%u5C0F%u6840%uFF0C%u7B49%u5F85%u5C0F%u6840%u7ED9%u6211%u63A5%u53E3%u540E%u518D%u66F4%u65B0%uFF0C%u6682%u65F6%u4E0D%u80FD%u67E5%u8BE2"))}function breakCheckSameMaps(){checkMapsResult="已中断查询";sameMapsChecked=true}function logMess(){getNow();if(log!=lastLog){lastLog=log;GM_setValue('log',log)}$("textarea#log").val("日志信息:     更新时间:"+nowHMS+"\n"+log)}function cleanLog(){GM_setValue('log','');log="";logMess()}function fullMapsMess(){window.open("https://supermariomakerbookmark.nintendo.net/courses/"+mapsJSON.levelRecords[0].levelId)}function donate(){window.open("http://note.youdao.com/noteshare?id=a667b6a4cf64b3c053ee091d448f2891&sub=EDF425F0960048C798AE3FAD1F4B20D6")}function help(){alert(unescape("%20%20%20%20%20%20%20%u663E%u793A%u2714%uFE0F%u533A%u57DF%uFF1A%u5C06%u4F60%u8981%u663E%u793A%u7684%u529F%u80FD%u6A21%u5757%u65C1%u8FB9%u7684%u52FE%u9009%u6846%u6253%u4E0A%u2714%uFE0F%uFF0C%u5219%u4F1A%u663E%u793A%u76F8%u5E94%u7684%u529F%u80FD%u6A21%u5757%uFF0C%u53CD%u4E4B%u5219%u9690%u85CF%u3002%0A%20%20%20%20%20%20%20%23%u7B7E%u5230%uFF1A%u8F93%u5165%u7B7E%u5230%u53EF%u4EE5%u83B7%u5F97%u4E00%u5B9A%u79EF%u5206%uFF0C%u5177%u4F53%u83B7%u5F97%u7684%u79EF%u5206%u6570%u91CF%u4E0E%u6597%u9C7C%u7B49%u7EA7%uFF0C%u662F%u5426%u52A0%u5165%u7C89%u4E1D%u56E2%u4EE5%u53CA%u662F%u5426%u8D2D%u4E70%u4F1A%u5458%u6709%u5173%uFF0C%u6BCF%u5929%u6574%u70B9%u4F8B%u59825%u70B9%u7684%u524D%u540E5%u5206%u949F%u53EF%u4EE5%u7B7E%u5230%uFF0C%u6BCF%u534A%u5C0F%u65F6%u53EF%u4EE5%u7B7E%u5230%u4E00%u6B21%u3002%0A%20%20%20%20%20%20%20%23%u62A2%u5206%uFF1A%u6709%u6563%u5206%u6216%u8005%u76F4%u64AD%u95F4%u6709%u98DE%u673A%u4EE5%u4E0A%u7684%u793C%u7269%u7684%u65F6%u5019%uFF0C%20%u53EF%u4EE5%u8F93%u5165%u6B64%u547D%u4EE4%u6765%u968F%u673A%u83B7%u5F97%u4E00%u5B9A%u7684%u79EF%u5206%u3002%0A%20%20%20%20%20%20%20%23%u5165%u56E2%uFF1A%u5728%u4E3B%u64AD%u5F00%u542F%u4E00%u8F6E%u65B0%u56E2%u6218%u4E4B%u524D%u53EF%u4EE5%u8F93%u5165%u6B64%u547D%u4EE4%uFF0C%u4F1A%u968F%u673A%u6311%u900999%u4E2A%u6C34%u53CBID%u53C2%u6218%uFF0C%u83B7%u80DC%u7684ID%u4F1A%u589E%u52A0%u79EF%u5206%uFF0C%u4F7F%u7528%u6B64%u547D%u4EE4%u4E0D%u6D88%u8017%u79EF%u5206%u3002%0A%20%20%20%20%20%20%20%23%u8D2D%u4E70%u4F1A%u5458%uFF1A%u8D2D%u4E70%u4F1A%u5458%u9700%u8981%u6D88%u80175000%u79EF%u5206%u4E00%u6B21%uFF0C%u6301%u7EED%u65F6%u95F41%u4E2A%u6708%uFF0C%u53EF%u4EE5%u591A%u6B21%u91CD%u590D%u8D2D%u4E70%uFF0C%u91CD%u590D%u8D2D%u4E70%u76F8%u5F53%u4E8E%u81EA%u52A8%u7EED%u8D39%uFF0C%u4F1A%u5458%u671F%u95F4%u5185%uFF0C%u4F60%u7684%u7B7E%u5230%u548C%u9001%u793C%u83B7%u5F97%u7684%u79EF%u5206%u662F%u76F4%u63A5%u7FFB%u500D%u7684%u3002%0A%20%20%20%20%20%20%20%231%205000%uFF1A1%u4EE3%u8868%u6295%u7968%u4E00%u53F7%u9635%u8425%uFF0C5000%u4EE3%u8868%u4E0B%u6CE85000%u5206%uFF0C%232%u540C%u7406%uFF0C%u5C01%u76D8%u540E%u4E0D%u53EF%u518D%u538B%u3002%0A%20%20%20%20%20%20%20%u666E%u901A%u5F39%u5E55%uFF1A%u5728%u76F4%u64AD%u95F4%u53D1%u9001%u666E%u901A%u5F39%u5E55%uFF0C%u4E0E%u5728%u6597%u9C7C%u804A%u5929%u6846%u53D1%u9001%u5185%u5BB9%u65E0%u533A%u522B%uFF0C%u4E0D%u6D88%u8017%u79EF%u5206%u3002%0A%20%20%20%20%20%20%20%u9AD8%u7EA7%u5F39%u5E55%uFF1A%u5728%u76F4%u64AD%u95F4%u53D1%u9001%u4ECE%u5DE6%u81F3%u53F3%u79FB%u52A8%u7684%u5F69%u8272%u5F39%u5E55%uFF0C%u9700%u8981200%u79EF%u5206%u53D1%u80FD%u53D1%u4E00%u6B21%uFF0C%u5E76%u4E14%u9700%u8981%u5386%u53F2%u6700%u9AD8%u79EF%u5206%u5927%u4E8E50000%u3002%0A%20%20%20%20%20%20%20%u4E0A%u7535%u89C6%uFF1A%u5728%u76F4%u64AD%u95F4%u53D1%u9001%u5F69%u8272%u5F39%u5E55%uFF0C%u4E00%u822C%u5728%u5C4F%u5E55%u5DE6%u4E0B%u89D2%u5F39%u51FA%uFF0C%u53EA%u6709%u5728%u4E3B%u64AD%u5207%u6362%u5230%u5BA4%u5185%u955C%u5934%u753B%u9762%u65F6%u624D%u5F00%u542F%u8FD9%u4E2A%u529F%u80FD%uFF08%u4E00%u822C%u4E3A%u4E2D%u5348%u5403%u996D%u65F6%uFF09%uFF0C%u6BCF%u6761%u6D88%u801710%u79EF%u5206%u3002%0A%20%20%20%20%20%20%20%u5C0F%u5C3E%u5DF4%uFF1A%u5728%u81EA%u52A8%u7B7E%u5230%u62A2%u5206%u7684%u65F6%u5019%u52A0%u4E0A%u81EA%u5B9A%u4E49%u5185%u5BB9%uFF0C%u5982%uFF1A%u201C%u62A2%u5206/%u7B7E%u5230+%u5C0F%u5C3E%u5DF4+%u65F6%u95F4%20%u4E3B%u64AD%u4F60%u771F%u4E11%u201D%u5219%u6BCF%u6B21%u81EA%u52A8%u7B7E%u5230%u7684%u5185%u5BB9%u4E3A%uFF1A%u201C%23%u62A2%u5206%20%u4E3B%u64AD%u4F60%u771F%u4E11%202019-4-9%205%3A00%3A00%u201D%u62A2%u5206%u4EA6%u5982%u6B64%u3002PS%3A%u5C0F%u5C3E%u5DF4%u53EF%u4EE5%u4E3A%u7A7A%uFF0C%u4E5F%u53EF%u4EE5%u4E0E%u53D1%u9001%u5185%u5BB9%u5171%u7528%u3002%0A%20%20%20%20%20%20%20%u65E5%u5FD7%uFF1A%u8BB0%u5F55%u4F7F%u7528%u63D2%u4EF6%u53D1%u9001%u7684%u5185%u5BB9%u548C%u5206%u6570%u53D8%u5316%u60C5%u51B5%uFF0C%u6BCF%u5929%u4F1A%u6709%u4E0E%u4E0A%u6B21%u4F7F%u7528%u63D2%u4EF6%u65F6%u7684%u79EF%u5206%u5BF9%u6BD4%u3002%0A%20%20%20%20%20%20%20%u5FAA%u73AF%u53D1%u9001%uFF1A%u91CD%u590D%u53D1%u9001%u6587%u672C%u6846%u7684%u5185%u5BB9%uFF0C%u6700%u5FEB3%7E8S%uFF0C%u6700%u6162100%7E105S%u81EA%u5B9A%u4E49%u968F%u673A%u95F4%u9694%u53D1%u9001%u4E00%u6B21%uFF0C%u5EFA%u8BAE%u914D%u5408%u968F%u673A%u6570%u4E00%u8D77%u4F7F%u7528%u3002%0A%20%20%20%20%20%20%20%u968F%u673A%u6570%uFF1A%u5F53%u53D1%u9001%u5185%u5BB9%u4E0E%u4E0A%u6B21%u53D1%u9001%u5185%u5BB9%u91CD%u590D%u65F6%uFF0C%u5728%u5185%u5BB9%u540E%u52A0%u5165%u968F%u673A%u6570%uFF0C%u5EFA%u8BAE%u6253%u5F00%u6B64%u9009%u9879%uFF0C%u4EE5%u514D%u53D1%u9001%u8FC7%u5FEB%uFF0C%u88AB%u8BEF%u5C01%u3002%0A%20%20%20%20%20%20%20%u81EA%u52A8%u53C2%u4E0E%u5F39%u5E55%u62BD%u5956%uFF1A%u5F53%u4E3B%u64AD%u53D1%u8D77%u5F39%u5E55%u62BD%u5956%u65F6%uFF08%u793C%u7269%u62BD%u5956%u65F6%u65E0%u6548%uFF09%uFF0C%u4F1A%u81EA%u52A8%u4E00%u952E%u53C2%u4E0E%uFF08%u5F53%u62BD%u5956%u6761%u4EF6%u662F%u7C89%u4E1D%u56E2%u6210%u5458%u65F6%uFF0C%u5219%u4EC5%u53D1%u9001%u5FAA%u73AF%u5F39%u5E55%uFF09%uFF0C%u53D1%u9001%u5FAA%u73AF%u5F39%u5E55%uFF0C%u76F4%u5230%u62BD%u5956%u7ED3%u675F%u5FAA%u73AF%u3002%0A%20%20%20%20%20%20%20%u81EA%u52A8%u53C2%u4E0E%u5F39%u5E55%u5F00%u706B%uFF1A%u5F53%u4E3B%u64AD%u5F00%u542F%u5F39%u5E55%u5F00%u706B%u62BD%u53D6%u9C7C%u4E38%u65F6%uFF0C%u4F1A%u81EA%u52A8%u53D1%u9001%u5FAA%u73AF%u5F39%u5E55%uFF0C%u9ED8%u8BA4%u4E3A%u53D1%u900110%u6B21%uFF0C%u5185%u5BB9%u4E3A%u4E0A%u6B21%u7528%u63D2%u4EF6%u53D1%u9001%u7684%u5185%u5BB9%uFF0C%u82E5%u4ECE%u672A%u5728%u63D2%u4EF6%u53D1%u9001%u8FC7%uFF0C%u5219%u752866666%u4EE3%u66FF%u3002%0A%20%20%20%20%20%20%20%u6E05%u7A7A%u65E5%u5FD7%uFF1A%u4EC5%u6E05%u9664%u5F53%u524D%u65E5%u5FD7%u4FE1%u606F%uFF0C%u4E0D%u4F1A%u5F71%u54CD%u5BF9%u6BD4%u8BB0%u5F55%u5206%u6790%u3002%0A%20%20%20%20%20%20%20%u67E5%u8BE2%u5730%u56FE%u662F%u5426%u73A9%u8FC7%uFF1A%u6682%u65F6%u53D6%u6D88%uFF0C%u5DF2%u8054%u7CFB%u5C0F%u6840%uFF0C%u7B49%u5C0F%u6840%u7ED9%u6211%u63A5%u53E3%u540E%u518D%u52A0%u4E0A"))}function canNotQuery(){alert(unescape("%u5386%u53F2%u6700%u9AD8%u79EF%u5206%u672A%u8FBE%u5230100W%u6216%u5F53%u524D%u79EF%u5206%u6CA1%u8D85%u8FC75W%uFF0C%u6682%u65F6%u4E0D%u80FD%u67E5%u8BE2"))}function sendColor(){color=$("#color").find("option:selected").text();switch(color){case'蓝':$("#bnt_chatsend").css("color","blue");break;case'绿':$("#bnt_chatsend").css("color","green");break;case'粉':$("#bnt_chatsend").css("color","pink");break;case'橙':$("#bnt_chatsend").css("color","orange");break;case'紫':$("#bnt_chatsend").css("color","purple");break;case'红':$("#bnt_chatsend").css("color","red");break}}function danmuSelect(){var danmuselect=$("#danmuselect").find("option:selected").text();if(danmuselect=='普通弹幕'){$('#color').attr("disabled",true);$("#bnt_chatsend").css("color","black")}else{$("#color").attr("disabled",false);sendColor()}}function chatSend(){var c;var danmuselect=$("#danmuselect").find("option:selected").text();text=$('#write').val();color=$("#color").find("option:selected").text();if(danmuselect=='普通弹幕'){c=''}else if(danmuselect=='高级弹幕'){c='#'+color+' '}else{c='#上电视 '+color+'色 '}if(text.length==0){alert("输入内容为空,请重新输入");return}else{text=c+text;document.getElementById("chattail").checked?danmu(fullTail(text)):danmu(text)}if(document.getElementById("loop").checked){loopFlag=true;GM_setValue('loopText',text);setTimeout(loopDanmu,loopIntervalTime,0)}else{loopFlag=false}$('#write').val('')}function select(){betSelect=$("#betselect").find("option:selected").text();if(betSelect=='#1'){$("#bnt_confirm").css("color","red").attr('title','团灭只需几关?!')}else{$("#bnt_confirm").css("color","blue").attr('title','就这?!')}}function betCredit(){betSelect=$("#betselect").find("option:selected").text();var betcredit=$("#betcredit").find("option:selected").text();var num;switch(betcredit){case'全压了':;case'压一半':num='老子'+betcredit;break;case'压1/3':num=parseInt(creditJSON.credit/3);break;case'压1/4':num=parseInt(creditJSON.credit/4);break;case'压1/5':num=parseInt(creditJSON.credit/5);break}danmu(betSelect+" "+num)}function ywSelect(set,bnt){ywSelected=$("#"+set).find("option:selected").text();if(ywSelected=='左边'){$("#"+bnt).css("color","red")}else{$("#"+bnt).css("color","blue")}}function betYw(set,num,bnt){var ywnum=$("#"+num).find("option:selected").text();ywSelected=$("#"+set).find("option:selected").text();if(ywSelected=='左边'){switch(bnt){case'bnt_ywconfirm':$('div.GuessContItem.is-left:eq(0)').click();break;case'bnt_ywconfirm1':$('div.GuessContItem.is-left:eq(1)').click();break;case'bnt_ywconfirm2':$('div.GuessContItem.is-left:eq(2)').click();break}}else{switch(bnt){case'bnt_ywconfirm':$('div.GuessContItem.is-right:eq(0)').click();break;case'bnt_ywconfirm1':$('div.GuessContItem.is-right:eq(1)').click();break;case'bnt_ywconfirm2':$('div.GuessContItem.is-right:eq(2)').click();break}}switch(ywnum){case'100':$('.chooseOption:eq(1)').click();break;case'1000':$('.chooseOption:eq(2)').click();break;case'10000':$('.chooseOption:eq(3)').click();break;case'ALL IN':$('.chooseOption:eq(4)').click();break}$('div.guessGame--btn.guessGame--btn--sizeM').click()}function recoverStatus(){var qf=GM_getValue('autoQf',false),qd=GM_getValue('autoQd',false),et=GM_getValue('enter',false),cl=GM_getValue('chatTail',false),rm=GM_getValue('random',true),ad=GM_getValue('autoGetReward',true),au=GM_getValue('autoDanmu',true),aw=GM_getValue('autoDraw',true),oy=GM_getValue('onlineNotify',true),lp=GM_getValue('loop',false);var a=GM_getValue('#hidecredit',true),b=GM_getValue('#hidemaps',true),c=GM_getValue('#hideinstructions',true),d=GM_getValue('#hidedanmu',true),e=GM_getValue('#hideqfqd',true),f=GM_getValue('#hidebet',true),g=GM_getValue('#hidelog',true);var arr=new Array(a,b,c,d,e,f,g,qf,qd,et,cl,rm,ad,au,aw,oy,lp,"#hidecredit","#hidemaps","#hideinstructions","#hidedanmu","#hideqfqd","#hidebet","#hidelog",'#autoqf','#autoqd',"#enter","#chattail","#random","#autogetreward","#autodanmu","#autodraw","#onlinenotify","#loop");for(var i=0;i<arr.length/2;i++){if(arr[i]){$(arr[i+arr.length/2]).prop("checked",true)}else{$(arr[i+arr.length/2]).prop("checked",false)}}if(pathName!=="/74751"){arr=new Array("#hidecredit","#hidemaps","#hideinstructions",'#autoqf','#autoqd',"#enter","#loop");for(i=0;i<arr.length;i++){$(arr[i]).prop("checked",false)}}loopSelect();fnHide();limitClick()}function limitClick(){timeCount=599;a=timeCount;b=checkCount;var countdown=setInterval(countDown,1000);function countDown(){$("#bnt_checksamemaps").attr("disabled",true);if(checkCount==0){$("#bnt_checksamemaps").attr('title','今日查询次数已用完')}else{$("#bnt_checksamemaps").attr('title','今日还可查询'+checkCount+'次')}$("#bnt_checksamemaps").val("还剩"+timeCount+" 秒");if(timeCount==0){$("#bnt_checksamemaps").val("查询地图是否玩过");if(checkCount!==0){$("#bnt_checksamemaps").removeAttr("disabled")}clearInterval(countdown)}timeCount--}};var betMessFlag=true,betMessClickFlag=false;var lastPlayerHeight=0,betcount;function betMess(){var playerHeight=$("div#js-player-title.layout-Player-title").outerHeight(true)+$("div#js-player-video-case.layout-Player-videoMain").outerHeight(true)+275;if(playerHeight!=lastPlayerHeight){$('div.layout-Player-guessgame').css('top',playerHeight+'px');lastPlayerHeight=playerHeight}if($('div.GuessIcon').length!=0&&betMessFlag){$('div.GuessIcon').click();betMessFlag=false;betMessClickFlag=true}if($('div.guessGameContainer.is-diyRoom').length!=0&&betMessClickFlag){$('div.layout-Player-guessgame').css('position','relative');betMessClickFlag=false}betcount=$('.GuessGameBox').length;if(betcount!=lastBetCount){if(betcount==0){$('section#bet1').hide();$('section#bet2').hide();$('section#bet3').hide()}else if(betcount==1){$('section#bet1').show();$('section#bet2').hide();$('section#bet3').hide()}else if(betcount==2){$('section#bet1').show();$('section#bet2').show();$('section#bet3').hide()}else if(betcount==3){$('section#bet1').show();$('section#bet2').show();$('section#bet3').show()}lastBetCount=betcount;fnHide()}switch(betcount){case 3:$("#betmess2").val("竞猜信息:     "+$('span.GuessMainPanelBoxRight-rightBar:eq(2)').text()+"\n"+$('div.boxLeft:eq(2)').text()+"\n左边:"+$('p.GuessContItem-itemTitle:eq(4)').text()+"   "+$('p.GuessContItem-itemLoss:eq(4)').text()+"\n右边:"+$('p.GuessContItem-itemTitle:eq(5)').text()+"   "+$('p.GuessContItem-itemLoss:eq(5)').text()+"\n"+$('.bidNumLeft:eq(2)').text()+" VS "+$('.bidNumRight:eq(2)').text());case 2:$("#betmess1").val("竞猜信息:     "+$('span.GuessMainPanelBoxRight-rightBar:eq(1)').text()+"\n"+$('div.boxLeft:eq(1)').text()+"\n左边:"+$('p.GuessContItem-itemTitle:eq(2)').text()+"   "+$('p.GuessContItem-itemLoss:eq(2)').text()+"\n右边:"+$('p.GuessContItem-itemTitle:eq(3)').text()+"   "+$('p.GuessContItem-itemLoss:eq(3)').text()+"\n"+$('.bidNumLeft:eq(1)').text()+" VS "+$('.bidNumRight:eq(1)').text());case 1:$("#betmess").val("竞猜信息:     "+$('span.GuessMainPanelBoxRight-rightBar:eq(0)').text()+"\n"+$('div.boxLeft:eq(0)').text()+"\n左边:"+$('p.GuessContItem-itemTitle:eq(0)').text()+"   "+$('p.GuessContItem-itemLoss:eq(0)').text()+"\n右边:"+$('p.GuessContItem-itemTitle:eq(1)').text()+"   "+$('p.GuessContItem-itemLoss:eq(1)').text()+"\n"+$('.bidNumLeft:eq(0)').text()+" VS "+$('.bidNumRight:eq(0)').text());break}}function tail(){var tailText=$('#tail').val();var formatselect=$("#formatselect").find("option:selected").text();getNow();if(formatselect=='抢分/签到+小尾巴'){fullTailText=tailText;tailFlag=1}else if(formatselect=='抢分/签到+小尾巴+时间'){if(tailText.length==0){fullTailText=nowHMS}else{fullTailText=tailText+" "+nowHMS}tailFlag=2}else{if(tailText.length==0){fullTailText=nowHMS}else{fullTailText=nowHMS+" "+tailText}tailFlag=3}GM_setValue('tailText',tailText);GM_setValue('tailFlag',tailFlag);$('#tail').val('');alert("保存成功,当前格式为:#抢分/签到 "+fullTailText)}function fullTail(danmu){var tailText=GM_getValue('tailText','');getNow();if(tailText.length==0){if(GM_getValue('tailFlag',tailFlag)==1){return(danmu)}else{return(danmu+" "+nowHMS)}}else{if(GM_getValue('tailFlag',tailFlag)==1){return(danmu+" "+tailText)}else if(GM_getValue('tailFlag',tailFlag)==2){return(danmu+" "+tailText+" "+nowHMS)}else{return(danmu+" "+nowHMS+" "+tailText)}}}function activate(){var betcount=$('.GuessGameBox').length;var dragDiv=document.getElementById("drag");dragDiv.addEventListener("mouseover",over,false);dragDiv.addEventListener('mousedown',down,false);dragDiv.addEventListener('mousemove',move,false);dragDiv.addEventListener('mouseup',up,false);dragDiv.addEventListener("mouseout",out,false);document.getElementById('bnt_donate').addEventListener('click',function(event){donate()},false);document.getElementById('bnt_fullmapsmess').addEventListener('click',function(event){fullMapsMess()},false);document.getElementById('bnt_renew').addEventListener('click',function(event){renew()},false);document.getElementById('bnt_confirm').addEventListener('click',function(event){betCredit()},false);document.getElementById('bnt_help').addEventListener('click',function(event){help()},false);document.getElementById('betselect').addEventListener('change',function(event){select()},false);document.getElementById('bnt_chatsend').addEventListener('click',function(event){chatSend()},false);document.getElementById('color').addEventListener('click',function(event){sendColor()},false);document.getElementById('danmuselect').addEventListener('change',function(event){danmuSelect()},false);document.getElementById('bnt_fnhide').addEventListener('click',function(event){fnHide()},false);document.getElementById('bnt_tailsave').addEventListener('click',function(event){tail()},false);document.getElementById('bnt_cleanlog').addEventListener('click',function(event){cleanLog()},false);document.getElementById('ywselect2').addEventListener('change',function(event){ywSelect('ywselect2','bnt_ywconfirm2')},false);document.getElementById('bnt_ywconfirm2').addEventListener('click',function(event){betYw('ywselect2','ywnum2','bnt_ywconfirm2')},false);document.getElementById('ywselect1').addEventListener('change',function(event){ywSelect('ywselect1','bnt_ywconfirm1')},false);document.getElementById('bnt_ywconfirm1').addEventListener('click',function(event){betYw('ywselect1','ywnum1','bnt_ywconfirm1')},false);document.getElementById('ywselect').addEventListener('change',function(event){ywSelect('ywselect','bnt_ywconfirm')},false);document.getElementById('bnt_ywconfirm').addEventListener('click',function(event){betYw('ywselect','ywnum','bnt_ywconfirm')},false);document.getElementById('watchstyle').addEventListener('change',function(event){watchStyle()},false);document.getElementById('loop').addEventListener('click',function(event){loopSelect()},false);document.getElementById('loopintervaltime').addEventListener('change',function(event){getLoopIntervalTime()},false);var arr=new Array('autoqf','autoqd','enter','chattail','random','loop','autogetreward','autodanmu','autodraw','onlinenotify');for(var i=0;i<arr.length;i++){document.getElementById(arr[i]).addEventListener('change',function(event){setCheckBox()},false)}if(a>=550&&b<3&&b>0&&c>=1e6&&d>=5e4){document.getElementById('bnt_breakchecksamemaps').addEventListener('click',function(event){breakCheckSameMaps()},false);document.getElementById('bnt_checksamemaps').addEventListener('click',checkSameMaps,false)}if(c<1e6||d<5e4)document.getElementById('bnt_checksamemaps').addEventListener('click',canNotQuery,false);}function over(e){div.style.cursor="move"}function out(e){div.style.cursor="auto"}function down(e){e=e||window.event;x=e.clientX-div.offsetLeft;y=e.clientY-div.offsetTop;dragFlag=true}function move(e){if(dragFlag){div.style.cursor="move";e=e||window.event;div.style.left=e.clientX-x+'px';div.style.top=e.clientY-y+'px'}}function up(e){if(dragFlag){GM_setValue('left',div.style.left);GM_setValue('top',div.style.top)}dragFlag=false;div.style.cursor="auto"}function sighIn(){getNow();if(m==0||m==30){if(sighInFlag){danmu(fullTail("#签到"));sighInFlag=false}}else{sighInFlag=true}}function giftCheck(){var i=onlineJSON.data.room_status=="1"?0:-5;if(giftStatusCheck!=0&&giftOpen==0&&$('span.TreasureNum-val').length==0){lastGiftNum=1;giftFlag=false;setTimeout(function(){danmu(fullTail("#抢分"));qf=setInterval(function(){if(document.getElementById("autoqf").checked){danmu(fullTail("#抢分"))};i++;if(i>3){clearInterval(qf);qf=null;creditMess()}},1800)},200)}}function exGiftCheck(){if($('span.TreasureNum-val').length!=0){giftNum=$('span.TreasureNum-val').text();if(giftNum>lastGiftNum){lastGiftNum=giftNum;giftFlag=false;clearInterval(qf);qf=null;clearInterval(exqf);exqf=null;var i=onlineJSON.data.room_status=="1"?0:-5;setTimeout(function(){danmu(fullTail("#抢分"));exqf=setInterval(function(){if(document.getElementById("autoqf").checked){danmu(fullTail("#抢分"))};i++;if(i>3){clearInterval(exqf);exqf=null;creditMess()}},1800)},200)}else{lastGiftNum=giftNum}}else{lastGiftNum=1}}function compareCreditQf(lCredit,nCredit){if(nCredit>lCredit){qfFlag=true}else{qfFlag=false}}function compareCredit(str){myCredit=GM_getValue('myCredit',-1);if(myCredit!=lastCredit){var diffCredit=lastCredit-myCredit;diffCredit>0?diffCredit="+"+diffCredit:diffCredit;getNow();lastCredit=GM_getValue('lastCredit',0);GM_setValue('myCredit',lastCredit);console.log("今天相对上次使用本插件时("+str+")"+diffCredit+"积分 当前积分为:"+lastCredit+"\n"+nowYMD+"\n");log="今天相对上次使用本插件时("+str+")"+diffCredit+"积分 当前积分为:"+lastCredit+"\n"+nowYMD+"\n\n"+log;logMess()}else{if(myCredit==-1){log="初次使用,对比记录分析将在次日生成,数据初始化...\n"+nowYMD;logMess();lastCredit=0;creditMess();setTimeout(function(){GM_setValue('myCredit',lastCredit)},10000)}else{console.log("今天相对上次使用本插件时("+str+")积分无变化,当前积分为:"+lastCredit+"\n"+nowYMD+"\n");log="今天相对上次使用本插件时("+str+")积分无变化,当前积分为:"+lastCredit+"\n"+nowYMD+"\n\n"+log;logMess()}}}function danmu(str){if($('.ChatSend-button.is-gray').length!=0){var reconnectFlag=true;var n=$('.Barrage-text.Barrage-notice--red').length-1;if($("a.js-danmu-reconnect.Barrage-notice--red").eq(n).text()=="点击重新连接弹幕"){$('a.js-danmu-reconnect.Barrage-notice--red').eq(n)[0].click()}}if($('div.ChatSend-button').text()=='发送'||$('div.ChatSend-button').text()=='开火'){if(document.getElementById("random").checked){str=(str==lastText?str+" "+(Math.ceil(Math.random()*10)-1):str)}$(".ChatSend-txt").val(str);if(reconnectFlag){chatSendClick=setInterval(function(){$('div.ChatSend-button').click();if($('.ChatSend-txt').text().length==0){clearInterval(chatSendClick)}},3000)}else{$('div.ChatSend-button').click()}lastText=str;getNow();log=nowHMS+" 发送:"+lastText+"\n"+log;logMess();console.log(nowHMS+" 发送:"+lastText+"\n")}}function loopSelect(){if(document.getElementById("loop").checked){$('#loopEnd').attr("disabled",false);$('#bnt_chatsend').css("font-weight","bold").val("循环发送")}else{$('#loopEnd').attr("disabled",true);$('#bnt_chatsend').css("font-weight","unset").val("发送")}}var loopEndFlag=false;function loopEndSelectFn(count,time){var loopEndSelect=$("#loopEnd").find("option:selected").text();loopEndFlag=false;switch(loopEndSelect){case'发送10次后停止':if(count>=9){$('#loop').prop("checked",false);loopEndFlag=true};break;case'发送20次后停止':if(count>=19){$('#loop').prop("checked",false);loopEndFlag=true}break;case'发送50次后停止':if(count>=49){$('#loop').prop("checked",false);loopEndFlag=true}break;case'手动停止':break;case'抽奖结束时停止':if($("div.UPlayerLotteryEnter.is-active").length==0){$('#loop').prop("checked",false);loopEndFlag=true};break;case'积分不再增加时停止':time=time>10000?time-5000:time-3000;var fixTime=loopIntervalTime-time;clearInterval(creditInterval);qfFlag=false;creditMess();setTimeout(function(){if(!qfFlag||count>=30){$('#loop').prop("checked",false);loopSelect();autoDanmuInterval=setInterval(autoDanmu,5000);autoDrawInterval=setInterval(autoDraw,5000);creditInterval=setInterval(function(){creditMess()},15000)}else{setTimeout(loopDanmu,fixTime,count)}},time);break}if(loopEndSelect!='积分不再增加时停止'){if(loopEndFlag){loopSelect();autoDanmuInterval=setInterval(autoDanmu,5000);autoDrawInterval=setInterval(autoDraw,5000)}else{setTimeout(loopDanmu,loopIntervalTime,count)}}}function getLoopIntervalTime(){var time=document.getElementById("loopintervaltime").value;loopIntervalTime=parseInt(time)*1000;$("#loopintervaltime").attr('title','当前循环随机时间间隔为'+time+'~'+(parseInt(time)+5)+'秒')}function loopDanmu(count){if(document.getElementById("loop").checked&&loopFlag){getLoopIntervalTime();loopSelect();intervalTime=Math.ceil(Math.random()*10);intervalTime=intervalTime>=5?(intervalTime-5)*1000:intervalTime*1000;if(document.getElementById("loop").checked){log=("下次发送间隔:"+(intervalTime+loopIntervalTime)/1000)+"秒\n"+log;logMess();setTimeout(function(){text=GM_getValue('loopText',"小助手NB");if(document.getElementById("chattail").checked){danmu(fullTail(text))}else{danmu(text)}loopEndSelectFn(++count,loopIntervalTime);},intervalTime)}else{loopSelect()}}else{loopFlag=false}}function getCookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i].trim();if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}