-
-
Save kajong0007/226545 to your computer and use it in GitHub Desktop.
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: [ "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