Skip to content

Instantly share code, notes, and snippets.

@amiel
Created January 30, 2009 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiel/54890 to your computer and use it in GitHub Desktop.
Save amiel/54890 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "hello-world",
execute: function() {
var doc = Application.activeWindow.activeTab.document;
// find div.foo in the body of that document
jQuery('#content', doc.body).html('woot');
displayMessage( "Hello, World!" );
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment