您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It sells "all" herbs and/or 1 gem when they're full. Should have more than 16 max gems for the gem selling to commence, so it doesn't interfere with unlocking gem boxes.
// ==UserScript== // @name Arcanum AutoSell Herbs and one gem if maxed. // @version 0.1 // @author Yoyó // @description It sells "all" herbs and/or 1 gem when they're full. Should have more than 16 max gems for the gem selling to commence, so it doesn't interfere with unlocking gem boxes. // @match http://www.lerpinglemur.com/arcanum/ // @match https://game312933.konggames.com/gamez/0031/2933/* // @namespace https://gf.qytechs.cn/users/390287 // ==/UserScript== var autofocus = window.setInterval(function(){ let sellGemFocus = "//div[@class='main-actions']//button[text()='Sell Gem']"; let sellGemBtn = document.evaluate(sellGemFocus,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue; if(!sellGemBtn.disabled){ let gemsPath = "//div[@class='resource-list']//td[text()='gems']/following-sibling::td[@class='num-align']"; let gemsText = document.evaluate(gemsPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue; let gemsValues = gemsText.textContent.split("/"); let currGems = parseInt(gemsValues[0]); let maxGems = parseInt(gemsValues[1]); if(currGems == maxGems) { sellGemBtn.click(); } } let sellHerbsFocus = "//div[@class='main-actions']//button[text()='Sell Herbs']"; let sellHerbsBtn = document.evaluate(sellHerbsFocus,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue; if(!sellHerbsBtn.disabled){ let herbsPath = "//div[@class='resource-list']//td[text()='herbs']/following-sibling::td[@class='num-align']"; let herbsText = document.evaluate(herbsPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue; let herbsValues = herbsText.textContent.split("/"); let currHerbs = parseInt(herbsValues[0]); let maxHerbs = parseInt(herbsValues[1]); if (currHerbs == maxHerbs) { while (maxHerbs > 0) { sellHerbsBtn.click(); maxHerbs = maxHerbs -1; } } } },1000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址