UNDYING!

Changes the flavor text on a button in the Kingdom of Loathing.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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;
	}
}