diff --git a/evolve-helper.js b/evolve-helper.js index 97acb34..386647a 100644 --- a/evolve-helper.js +++ b/evolve-helper.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Evolve Helper // @namespace http://tampermonkey.net/ -// @version 2024-12-08 +// @version 2024-12-08_11-55 // @description accerlate and automate // @grant none // @author liooil @@ -36,6 +36,7 @@ function scan() { } }); menuBtn(versionLogEl, "autoRun", "bool", true); + menuBtn(versionLogEl, "autoAll", "bool", false); vueMethod = document.getElementById("topBar").__vue__; } for (const node of document.querySelectorAll("div.action.vb")) { @@ -57,6 +58,13 @@ function scan() { function auto() { if (!getBool("autoRun")) return; + if (getBool("autoAll")) { + for (const node of document.querySelectorAll("div.action.vb")) { + if (node.classList.contains("cna")) continue; + const a = el.querySelector("a.button"); + if (a) a.click(); + } + } for (const id of autoIds) { for (const type of ['buy', 'sell']) { if (id.endsWith('-' + type)) {