Skip to content

Instantly share code, notes, and snippets.

@satyr
Forked from cers/x
Created March 23, 2009 10:02
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 satyr/83495 to your computer and use it in GitHub Desktop.
Save satyr/83495 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "example",
takes: {"search term": /.*/},
preview: function(pblock, input) {
CmdUtils.previewGet(pblock, "http://google.com/search", {q: input.text}, function(data){
pblock.innerHTML = data;
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment