extending goosh with a google custom search

wouldn’t it be great to combine a google custom search engine (cse) with the fine command line google user interface (goosh)?
that’s quite easy.
goosh provides the load command for this purpose

load load an extension

where you can a load a javascript function to make goosh understanding additional commands. try

load http://doomicile.de/goosh/droogle.js

to get the „droogle“ command and abbreviation

droogle (dr) [word] drupal google search

now it’s necessary to get droogle.js loaded automagically each time you use goosh.org. firefox extension greasemonkey is able to inject javascript code into webpages. just define a a script to load the droogle extension each time goosh.org is called, like this one: goosh.user.js
now it’s possible to use the new „dr“ command directly from the firefox search bar:
using droogle goosh from firefox search

thanks to Stefan Grothkopp for goosh.org, Greg Hewgill for his extension example and YungSang for his Greasemonkey script

One Response to “extending goosh with a google custom search”

  1. doesn’t work.

Discussion Area - Leave a Comment