Greasy Fork is available in English.

虎牙自动领取每日任务

自动领取虎牙每日任务奖励

// ==UserScript==
// @name         虎牙自动领取每日任务
// @namespace    https://greasyfork.org/
// @version      1.5
// @description  自动领取虎牙每日任务奖励
// @author       楚徐坤
// @match        http*://www.huya.com/*
// @grant        none
// @icon         http://livewebbs2.msstatic.com/denglu.png
// ==/UserScript==
(function() {
    'use strict';

    // 360秒执行一次,可调整,过快会影响浏览器性能
    var time = 360;
    
    $(window).ready(() =>{
        setTimeout(runThis, 6e3);
        setInterval(runThis, time * 1e3);
    });
    
    function runThis() {
        $(".nav-user-title").mouseenter();
        setTimeout(function() {
            var reward = $(".status-get");
            reward.each(function() {
                this.click();
                console.log("领取成功");
            });
        }, 6e3);
    };
})();