Greasy Fork

Greasy Fork is available in English.

斗鱼自动抢鱼丸

自动领取斗鱼的鱼丸,自动等待,自动发送弹幕增加领取机率 get the yuwan from douyu automatically

目前为 2016-10-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         斗鱼自动抢鱼丸
// @namespace    http://tampermonkey.net/
// @version      0.1.5
// @description  自动领取斗鱼的鱼丸,自动等待,自动发送弹幕增加领取机率 get the yuwan from douyu automatically
// @author       Chuck
// @match        https://www.douyu.com/*
// @match        http://www.douyu.com/*
// @grant        none
// ==/UserScript==

console.log("鱼丸自动领取已经启动");
setInterval(function(){
if($(".peck-cdn").html()!="loading...")
  {	
	console.log("发现礼物");
    try{
     eval("timer");
     clearInterval(timer);
   } catch (e){}
	timer = setInterval(function(){
		if($(".peck-cdn").html()=="领取")
			{	
				$(".cs-textarea").val("666666  "+Math.random()*100%1);
				$(".b-btn").click();
				$(".peck-cdn").click();
                if($(".peck-cdn").html()=="loading...")
				 clearInterval(timer);
			}
	},500);
	
  }
}, 10000);