Greasy Fork

Greasy Fork is available in English.

U77驰援英雄自动

没得介绍!

当前为 2024-04-07 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         U77驰援英雄自动
// @namespace    http://tampermonkey.net/
// @version      2024-03-27
// @description  没得介绍!
// @author       没得名字
// @match        https://file.u77.games/zh-cn/2022/1107/Abqu-Heroes/PixelItem/index.html
// @icon         https://www.google.com/s2/favicons?sz=64&domain=u77.games
// @license MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
//仓库最大保留数
var maxnum=player.inventoryCap-1;
//计时器毫秒数
var maxtimes1=300;
var maxtimes2=1500;

function autosell(){
    $("#inventory").find(".inventoryCount").each(
        function(e){
            if(this.innerHTML.match(/\d+/)>maxnum){
              $("#inventory").find("a")[e].click();
              console.log("自动卖出"+ $("#inventory").find("a")[e].innerText);
            }
        })
}

function automax(){
    player.皮革=player.皮革Cap;player.矿石=player.矿石Cap;player.木材=player.木材Cap;player.药草=player.药草Cap;
    player.money=99999999999;

}

//setInterval(autosell,maxtimes1)
setInterval(automax,maxtimes2)
})();