~robcee/ more than just sandwiches

Posted
25 June 2012 @ 7pm

Tagged
Code, devtools, Firefox, Mozilla

DevTools Hackday June 26, 2012

We’re having a DevTools Hackday tomorrow, June 26th to create some commands for the newly-landed Global Command Line Interface. (Joe blogged about it here). It’s still new and waiting for you to write some excellent new commands for it. Got a thing you’d like Firefox to do? Feel like hacking a little Browser JS? This is the place to do it.

Join us in IRC in #devtools on irc.mozilla.org.

There’s an MDN page that shows you what you need to get started. It boils down to this simple template you can run in a browser Scratchpad:

Components.utils.import("resource:///modules/devtools/gcli.jsm");

gcli.addCommand({
  name: 'hello',
  description: 'Show a message',
  params: [
    {
      name: 'name',
      type: 'string',
      description: 'Who to say hello to',
    }
  ],
  exec: function(args, context) {
    return 'Good morning, ' + args.name;
  }
});

I’ll be hanging out in 10-Forward in Mountain View if you want to meet up and get your HACK on. There will be snacks.