Billy Mission Hotkeys

Hotkeys for Missions

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name            Billy Mission Hotkeys
// @namespace       Garyzx
// @version         1.2
// @history         1.2 New domain - animecubedgaming.com - Channel28
// @history         1.1 Now https compatible (Updated by Channel28)
// @description     Hotkeys for Missions 
// @include         http*://*animecubed.com/billy/bvs/missions/mission*
// @include         http*://*animecubedgaming.com/billy/bvs/missions/mission*
// @grant           none
// ==/UserScript==

function process_event(event) {
	if (event.keyCode==69){		//e
		var jutsu=document.forms.namedItem("attempt").elements;
		for(var i=0; i<jutsu.length; i++)
			if(jutsu[i].value==374)		//Escape jutsu
				jutsu[i].wrappedJSObject.click();
		document.forms.namedItem("attempt").wrappedJSObject.submit();	//Attempt mission
	}
	if (event.keyCode==77){		//m
		if(document.forms.namedItem("attempt"))
			document.forms.namedItem("attempt").wrappedJSObject.submit();	//Attempt mission
		else
			document.forms.namedItem("domission").wrappedJSObject.submit();	//New mission
	}
	if (event.keyCode==67)		//c
		document.forms.namedItem("chakra").wrappedJSObject.submit();	//Charge chakra
}

window.addEventListener("keyup", process_event, false);