您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Changes the flavor text on a button in the Kingdom of Loathing.
当前为
- // ==UserScript==
- // @name UNDYING!
- // @namespace dentarthurdent
- // @version 0.3
- // @description Changes the flavor text on a button in the Kingdom of Loathing.
- // @include http://www.kingdomofloathing.com/choice.php
- // @include http://127.0.0.1:*/choice.php
- // @include http://localhost:*/choice.php
- // @copyright 2015, Thomas Nelson
- // @grant none
- // ==/UserScript==
- var inputs = document.getElementsByTagName('input');
- for (var j = 0; j < inputs.length; ++j)
- {
- if( inputs[j].value == "Go right back to the fight!" || inputs[j].value == "Return to the fight!" )
- {
- inputs[j].value = "UNDYING!";
- break;
- }
- if( inputs[j].value == "Go right back to the fight! (1 Ka)" || inputs[j].value == "Return to the fight! (1 Ka)" )
- {
- inputs[j].value = "UNDYING! (1 Ka)";
- break;
- }
- }