Greasemonkey内でのテストコード、ok/is、Firebugコンソールへの出力(log/info/error) JavaScript function log() { print('log', arguments) } function info() { print('info', arguments) } function error() { print('error', arguments) } function print(level, arg) { unsafeWindow.console[level].apply(unsafeWindow.console, Array.slice(arg)) } function is(got, expected) { if(got == expected) return ok(true); error("ERROR : %s\ngot