您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Changes the flavor text on a button in the Kingdom of Loathing.
// ==UserScript== // @name UNDYING! // @namespace dentarthurdent // @version 1 // @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* // @grant none // ==/UserScript== var inputs = document.getElementsByTagName('input'); for (var j = 0; j < inputs.length; ++j) { if( inputs[j].value.search("Go right back to the fight!") >= 0 ) { inputs[j].value = inputs[j].value.replace( "Go right back to the fight!", "UNDYING!" ); break; } if( inputs[j].value.search("Return to the fight!") >= 0 ) { inputs[j].value = inputs[j].value.replace( "Return to the fight!", "UNDYING!" ); break; } }