The javascript I am using:
javascript: c = \'{unit}, ({coords}) {player} |{distance}| {return}\';
p = [\'Scout\', \'LC\', \'HC\', \'Axe\', \'Sword\', \'Ram\', \
closing tag, or wrap it in an event handler for the load
event of window
or the DOMContentLoaded
event of document
.
EDITED How to wrap your code:
window.onload = function() {
//your code here
};