您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Reload goes to the top of inventory.
当前为
// ==UserScript== // @name Nexus Clash Reload on Top // @namespace http://userscripts.org/users/125692 // @description Reload goes to the top of inventory. // @include http://nexusclash.com/modules.php?name=Game* // @include http://www.nexusclash.com/modules.php?name=Game* // @exclude http://nexusclash.com/modules.php?name=Game&op=disconnect // @exclude http://www.nexusclash.com/modules.php?name=Game&op=disconnect // @grant none // @version 1.0 // ==/UserScript== //for nexus clash game. Put any item with a reload button at the top of inventory. (function() { var inventoryheading = document.evaluate( "//b[starts-with(.,'INVENTORY')]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null ); if(inventoryheading.snapshotLength>0){ inventoryheading=inventoryheading.snapshotItem(0);//pick the first one var inventorytbody=inventoryheading.parentNode.parentNode.parentNode.parentNode;//4 lvls up to tbody var inventoryclothing = document.evaluate( "//tr[td/a/text()='Reload']", inventorytbody, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null ); if (inventoryclothing.snapshotLength>0){ var usableitem=0; for (i=0;usableitem=inventoryclothing.snapshotItem(i);i++){ inventorytbody.insertBefore(usableitem,inventorytbody.firstElementChild.nextElementSibling.nextElementSibling.nextElementSibling); } } } //EOF })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址