feat: add auto all
This commit is contained in:
parent
d2d2d9a934
commit
9b3d53c1da
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Evolve Helper
|
// @name Evolve Helper
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 2024-12-08
|
// @version 2024-12-08_11-55
|
||||||
// @description accerlate and automate
|
// @description accerlate and automate
|
||||||
// @grant none
|
// @grant none
|
||||||
// @author liooil
|
// @author liooil
|
||||||
@ -36,6 +36,7 @@ function scan() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
menuBtn(versionLogEl, "autoRun", "bool", true);
|
menuBtn(versionLogEl, "autoRun", "bool", true);
|
||||||
|
menuBtn(versionLogEl, "autoAll", "bool", false);
|
||||||
vueMethod = document.getElementById("topBar").__vue__;
|
vueMethod = document.getElementById("topBar").__vue__;
|
||||||
}
|
}
|
||||||
for (const node of document.querySelectorAll("div.action.vb")) {
|
for (const node of document.querySelectorAll("div.action.vb")) {
|
||||||
@ -57,6 +58,13 @@ function scan() {
|
|||||||
|
|
||||||
function auto() {
|
function auto() {
|
||||||
if (!getBool("autoRun")) return;
|
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 id of autoIds) {
|
||||||
for (const type of ['buy', 'sell']) {
|
for (const type of ['buy', 'sell']) {
|
||||||
if (id.endsWith('-' + type)) {
|
if (id.endsWith('-' + type)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user