Skip to content

Instantly share code, notes, and snippets.

@kajong0007
Created November 5, 2009 00:24
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 kajong0007/226545 to your computer and use it in GitHub Desktop.
Save kajong0007/226545 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
names: [ "rt", "rotten tomatoes"],
icon: "http://images.rottentomatoes.com/images/icons/favicon.ico",
description: "Searches Rotten Tomatoes",
help: "Rotten Tomatoes + Search Term",
author: {name: "Kajong", email: "kajong0007@gmail.com"},
homepage: "",
arguments: [{role: 'object', label:'Movie or celeb or critic', nountype: noun_arb_text}],
preview: function previewGet(pblock, args) {
pblock.innerHTML = "You are searching <i>Rotten Tomatoes</i> with the term(s) <b>" + args.object.html +"</b>.";
},
execute: function execute(args) {
Utils.openUrlInBrowser("http://www.rottentomatoes.com/search/full_search.php?search="+ args.object.text, this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment