Development/PlugIns/JavaScript - Colloquy - Trac
"There is a template script available in the JavaScript SDK section containing stubs and commentary for all available functions a JavaScript PlugIn for Colloquy can implement."