Ubiquity commands

by Daniel Hoelbling - 0.1 pre alpha (hopefully to be improved)

This page works as the installer to my Ubiquity commands. Currently the package will install two commands:

wowhead

Searches for your selection on WoWhead

gmail

Takes you to Gmail.

Source

				CmdUtils.CreateCommand(
				{
				  name: "wowhead",
				  homepage: "http://www.tigraine.at",
				  author: { name: "Daniel Hoelbling", email: "tigraine@tigraine.at" },
				  license: "MPL",
				  description: "Searches WoWhead",
				  help: "Works like google..",
				  takes: {"your WoWhead search": noun_arb_text},
				  preview: function( pblock, theShout)
					{  pblock.innerHTML = "Searches WoWHead for " + theShout.text + ""},
				  execute: function( theShout ) {
					var searchUrl = "http://www.wowhead.com/?search=" + theShout.text;
					Utils.openUrlInBrowser(searchUrl);
				  }
				});

				CmdUtils.CreateCommand(
				{
				  name: "gmail",
				  homepage: "http://www.tigraine.at",
				  author: {name: "Daniel Hölbling", email: "tigraine@tigraine.at"},
				  licesene: "MPL",
				  description: "Goes to your Gmail",
				  help: "Goes to your Gmail",
				  icon: "http://mail.google.com/mail/images/favicon.ico",
				  preview: "Open Gmail in a new tab",
				  execute: function()
				  { Utils.openUrlInBrowser("http://www.gmail.com"); }
				}
				);