// ==UserScript== // @author DreamChaser // @description 快速下注,自动签到,查看积分,自动抢积分,查看地图详情,查看竞猜信息,快速压鱼丸、快速发弹幕。 // @icon https://apic.douyucdn.cn/upload/avatar/002/86/30/15_avatar_big.jpg // @name 超级小桀房间小助手 // @version 1.5.1 // @match https://www.douyu.com/cave // @match https://www.douyu.com/0* // @match https://www.douyu.com/1* // @match https://www.douyu.com/2* // @match https://www.douyu.com/3* // @match https://www.douyu.com/4* // @match https://www.douyu.com/5* // @match https://www.douyu.com/6* // @match https://www.douyu.com/7* // @match https://www.douyu.com/8* // @match https://www.douyu.com/9* // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_notification // @namespace https://greasyfork.org/zh-CN/users/285196-dreamchaser // @require https://code.jquery.com/jquery-2.1.4.min.js // @connect xiaojie666.com // @downloadURL none // ==/UserScript== var dragFlag = false; var x,y; var sighInFlag = true; var lastText = ""; var nickname = getCookie('acf_nickname'); //var acf_did = getCookie('acf_did'); //var acf_uid = getCookie('acf_username'); //var acf_ltkid = getCookie('acf_ltkid'); //var acf_stk = getCookie('acf_stk'); var n=3,lastGiftNum=0,giftNum=0,lastBetCount=-1,betSelect,ywSelected,color,text,giftStatusCheck,giftOpen; var giftFlag=true,activateFlag=false; var mapsJSON,creditJSON; var fullTailText=GM_getValue('fullTailText', ''),tailFlag=1; var year,month,date,h,m,s,now; var div = document.createElement('div'); var dragDiv=document.getElementById("drag"); div.setAttribute('id', 'newDiv'); div.style.setProperty('position', 'fixed'); div.style.setProperty('width', '253px'); div.style.setProperty('background', '#eff7ff'); div.style.setProperty('left', '80%'); 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'); document.body.appendChild(div); div.style.left = GM_getValue('left','80%'); 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)); $(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","#抢分","#入团","#购买会员"); creditMess(); betMess(); mapsMess(); notifiy(); setInterval( function(){ creditMess(); mapsMess(); if(document.getElementById("autoqd").checked) { sighIn(); } $(document).ready(function () { if(activateFlag){ for (var i=0;ilastGiftNum){ lastGiftNum=giftNum; giftFlag = false; setTimeout( function(){ danmu(fulltail("#抢分")); },1000); } else{ lastGiftNum=giftNum; } } else{ lastGiftNum=1; } } function danmu(str){ if($('div.ChatSend-button').text()=='发送'){ if (str == lastText){ str = str + " " + Math.ceil(Math.random()*5) } $(".ChatSend-txt").val(str); $('div.ChatSend-button').click(); lastText = str; getNow(); console.log(now+" 发送:"+lastText); } } function getCookie(cname){ var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i