Archive for the ‘bookmarklet’ Category

Bookmarklet to search current site using Google

Monday, April 10th, 2006

(This has been done before, but I’m putting my own spin on it.)

I often use Google to search a particular website, using “site:example.com” and my search terms. It gets a bit tedious entering “site:example.com”, so I made the following bookmarklet:

It prompts for the search terms, automatically adds the “site:” keyword and domain name, then goes to Google. You can select some text on the page before you click the bookmarklet, and your selected text will be used as the default search keywords.

For Firefox just drag-and-drop the link to your bookmarks toolbar. For IE, right-click the link then select “Add to Favorites…” (you might get a warning message since the bookmark contains javascript) then add it to your Links toolbar.

Inspired by: Search Bookmarklets

Bookmarklet: sort all drop-down select lists on a page

Tuesday, April 4th, 2006

Some of my co-workers got stuck using a poorly-designed web application that has huge drop-down select lists. Unfortunately the people who designed this web app didn’t forsee the need to actually present the list items in any particular order, so its nearly impossible to find anything.

I made the following bookmarklet to sort all the select lists on the page. It’s probably not much use to anyone else, but at least I got to learn how to make a bookmarklet. Unfortunately it has to work in IE, which has a strict limit on the size of bookmarklets, so I had to keep it very simple.

SortSelect bookmarklet
Bookmark this link then click it on a page that has one or more select elements. The select lists will be sorted alphabetically. Tested in Firefox and IE6.
Test: