您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables the attack buttons on the building screen.
// ==UserScript== // @name Trader Attack Disabler // @namespace https://greasyfork.org/users/1802-wes-pardus // @description Disables the attack buttons on the building screen. // @author Wes // @include http://artemis.pardus.at/building.php // @include https://artemis.pardus.at/building.php // @version 1 // ==/UserScript== var buttons = document.getElementsByTagName("input"); if(buttons != null){ var max = buttons.length; var x = 0; while(x < max){ if(buttons[x].value == "Damage this building"){ buttons[x].disabled = true; } if(buttons[x].value == "Raid this building"){ buttons[x].disabled = true; } x += 1; } }