CmdUtils.CreateCommand({
name: "lookinherefor",
description: "Do a site based google search.",
takes: {"input": noun_arb_text},
execute: function( input ) {
var url = Application.activeWindow.activeTab.uri.spec;
url = url.split('/');
displayMessage(url[2]);
Utils.openUrlInBrowser('
http://www.google.com/search?q=site:' +
url[2] + ' ' + input.text);
}
});