Skip to content

Instantly share code, notes, and snippets.

@ba3r
Created October 18, 2009 20:49
Show Gist options
  • Save ba3r/212832 to your computer and use it in GitHub Desktop.
Save ba3r/212832 to your computer and use it in GitHub Desktop.
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["what"],
icon: "http://www.mozilla.com/favicon.ico",
description: "A short description of your command.",
help: "How to use your command.",
author: {name: "Your Name", email: "you@mozilla.com"},
license: "GPL",
homepage: "http://labs.mozilla.com/",
arguments: [{role: 'object', nountype: noun_arb_text}],
preview: function preview(pblock, args) {
jQuery.getFeed({
url: 'http://feeds.feedburner.com/tedtalks_video',
success: function(feed) {
var titel = feed.title;
}
});
pblock.innerHTML = titel;
},
execute: function execute(args) {
displayMessage("You selected: " + args.object.text, this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment