October 12, 2012

Bookmarklet for performing a google site search

Bookmarklet for performing a google site search

I do a lot research in my job, and sometimes I need to narrow down a search for a specific website. As a little exercise, I prepared this little javascript bookmarklet to perform a google search on the site that one is currently visiting.

There are probably hundreds of scripts like this around, but I thought this would be a simple little javascript exercise to have this set up.

The resulting script runs as a bookmarklet/favlet - by selecting this bookmark when visiting a certain website, the user is presented with a prompt to enter search terms, and then the page redirects to a google search limited to the current website.

To find out more - see the download I posted on the resources section!