Command: Do a site based google search against current domain

1 view
Skip to first unread message

David Solomon

unread,
Sep 3, 2008, 11:15:57 AM9/3/08
to ubiquity-firefox
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);
}
});

Julien Couvreur

unread,
Sep 3, 2008, 12:23:16 PM9/3/08
to ubiquity-firefox
You may be interested in Chris Pickett's updated 'google' command:
http://groups.google.com/group/ubiquity-firefox/browse_thread/thread/2a1737e9ffbf0982/b939b382ebbc39e2#b939b382ebbc39e2

Cheers,
Julien
Reply all
Reply to author
Forward
0 new messages