|
I modified this jutsu so it works in both firefox and chrome.
The reason it doesn't work in chrome as you made it is because chrome disables a certain function you used due to being highly insecure. As a benefit of the changes I made the script will be more secure even when used in firefox.
See http://www.animecubed.com/billy/forum/viewtopic...
Modified code:
// ==UserScript==
// @name Billy Mission Hotkeys
// @namespace Garyzx
// @description Mission hotkeys for BvS
// @version 1.1
// @history 1.1 Chrome compatibility / plugged security hole by taltamir, thanks to Ren Po Ken
// @history 1.0 Initial version by Garyzx
// @include http://*animecubed.com/billy/bvs/missions/mission*
// ==/UserScript==
function process_event(event) {
if (event.keyCode==69){ //e
var jutsu=document.forms.namedItem("attempt").elements;
for(var i=0; i<jutsu> if(jutsu[i].value==374) //Escape jutsu
jutsu[i].setAttribute("checked", "checked");
location.assign('javascript:attempt.submit()'); //Attempt mission
}
if (event.keyCode==77){ //m
if(document.forms.namedItem("attempt"))
location.assign('javascript:attempt.submit()'); //Attempt mission
else
location.assign('javascript:domission.submit()'); //New mission
}
if (event.keyCode==67) //c
location.assign('javascript:chakra.submit()'); //Charge chakra
}
window.addEventListener("keyup", process_event, false);
|