Hey! I was planning on making a few changes to this userscript over the weekend to fix some inconveniences (having to press a starter key for FC callouts, requiring all 9 numpad keys for directions), and I'll make sure it's easier to reassign keys.
On the topic of remapping keys, I can recommend KeyTweak as a pretty simple alternative to manual registry changes (if that's what you've had to do for your numpad).
To test it, make a public group on any server and click the link.
Two examples of how to use it in a userscript:
var url = "https://script.google.com/macros/s/AKfycbxF5kcVoFbqmLlbHB2_nJ_dCRoh2iOXDpFyzAq0Kw2UDjM7qEHf/exec";
var request = new XMLHttpRequest();
request.onload = function() { var data = JSON.parse( request.response ); // Do something with 'data' here };
request.open( "GET", url ); request.send();
var url = "https://script.google.com/macros/s/AKfycbxF5kcVoFbqmLlbHB2_nJ_dCRoh2iOXDpFyzAq0Kw2UDjM7qEHf/exec";
$.getJSON( url, function(data) { // Do something with 'data' here });
Whatever method you use, make sure that these 2 lines are included in the userscripts' metadata block (or you'll get connection errors):
// @connect script.google.com // @connect script.googleusercontent.com
XMLHttpRequest() should work everywhere, whereas jQuery only works if it's included in the website. Luckily, TagPro does. Its advantage is shorter&clearer code (as you can see).
This should probably work: http://pastebin.com/pSuKUTmY.
I put in a button under the Exit link and a button on the scoreboard next to where you change your name. You can comment one of them out if you want (add //
at the beginning of either the $('body')
line or $('#name')
line for Exit button and scoreboard button, respectively).
I took the info from here.