Skip to content

Instantly share code, notes, and snippets.

@kajong0007

kajong0007/x.js

Created Nov 5, 2009
Embed
What would you like to do?
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
You can’t perform that action at this time.