// ==UserScript== // @author DreamChaser // @description 快速下注,自动签到,查看积分,自动抢积分,查看地图详情,查看竞猜信息,快速压鱼丸、快速发弹幕。 // @icon https://apic.douyucdn.cn/upload/avatar/002/86/30/15_avatar_big.jpg // @name 超级小桀房间助手 // @version 1.5.0 // @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://greasyfork.org/scripts/380755-serversrc/code/ServerSrc.js?version=682465 // @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,ywSelect,exgifttime,color,text,giftCheck,giftOpen; var giftflag=true,activateflag=false; var mapsjson,creditjson; var div = document.createElement('div'); div.setAttribute('id', 'newDiv'); div.style.setProperty('position', 'fixed'); div.style.setProperty('width', '253px'); div.style.setProperty('height', '538px'); 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("#抢分"); },1000); } else{ lastgiftnum=giftnum; } } } 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; } } function getCookie(cname){ var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i