Created
October 26, 2009 01:14
-
-
Save frason/218358 to your computer and use it in GitHub Desktop.
RottenTomatoes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
names: ["rottentomatoes"], | |
icon: "http://www.mozilla.com/favicon.ico", | |
description: "Searches RottenTomatoes for Movie titles.", | |
help: "type rottentomatoes then your movie name.", | |
author: {name: "Jason Frasier", email: "jfrasier@gmail.com"}, | |
license: "GPL", | |
homepage: "http://www.rottentomatoes.com/", | |
arguments: [{role: 'object', nountype: noun_arb_text}], | |
preview: function previewSearchRT(pblock, args) { | |
pblock.innerHTML = "Your input is <b>" + args.object.html + "</b>."; | |
}, | |
execute: function executeSearchRT(args) { | |
Utils.openUrlInBrowser("http://www.rottentomatoes.com/search/full_search.php?search=" + args.object.text); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment