Download::Order WireKeys    Plugins    Macros    Sources    Tips&Tricks    Help   

Using keyword searches

This article applies to Firefox and WireKeys.

In Firefox and Mozilla Suite you can specify keywords for bookmarks by filling in the “Keyword” field in the bookmark’s Properties. When you type the keyword into the Location Bar and hit [Enter], the keyword will be replaced with the bookmarked URL. For example, bookmarking http://google.com/, giving it a keyword of “g”, and typing “g” into the Location Bar will take you to Google.

What makes keywords very powerful is that if you add a “%s” at some place in your bookmark’s URL, it will be replaced by the words you type in after the keyword. (These are sometimes called “Quicksearches”.) For example, if we were to modify the bookmark mentioned above so that it pointed to “http://google.com/?q=%s”, we can type “g mozilla” into the Location Bar to arrive at “http://google.com/search?q=mozilla”.

Default searches

By default, Mozilla Firefox comes with several bookmarks with keywords defined. They’re located in the “Quick Searches” folder in the default bookmarks.

Bookmark Name Keyword Bookmark URL
Google Quicksearch google http://www.google.com/search?q=%s
Dictionary.com Quicksearch dict http://dictionary.reference.com/search?q=%s
Stock Symbol Quicksearch quote http://www.google.com/search?q=stocks:%s
Wikipedia Quicksearch wp http://en.wikipedia.org/wiki/Special:Search?search=%s
Urban Dictionary slang http://www.urbandictionary.com/define.php?term=%s

Creating bookmarks with keywords

In Mozilla Firefox, you can simply right-click in a search field on a web page and choose “Add a Keyword for this Search.” This will pop up a dialog for you to add a bookmark name and keyword.

You can also create it manually:

  1. Do a search on the site you want to add a quicksearch to.
  2. Bookmark the page you are brought to (the results page).
  3. Open the Properties dialog for your new bookmark.
  4. In your bookmark’s URL (the Location field), find and replace what you searched for with %s (If it does not appear, you cannot use a quicksearch here)
  5. Add a keyword

Note: Mozilla Suite users can use the “Bookmarks > File Bookmark...” feature and edit bookmark’s properties at the moment of its creation.


Below is a list of various keyword searches for Mozilla Suite and Firefox. The keywords shown are only a suggestion and you can change them to fit your preferences. The keywords are case-insensitive. To use a keyword, type the keyword followed by the search terms in the Location Bar. For more information refer to Using keyword searches.

For keyword searches not listed below, the Mozilla extension NeedleSearch allows you to discover the requied URI parameters, not only for searches, but for many other types of forms based interfaces.

Search engines

Name Location/URL Keyword
AlltheWeb http://www.alltheweb.com/search?q=%s atw
AltaVista http://www.altavista.com/web/results?q=%s av
dmoz.org http://search.dmoz.org/cgi-bin/search?search=%s dmoz
Dogpile http://www.dogpile.com/info.dogpl/search/web/%s dp
Google http://www.google.com/search?q=%s g
Google's "I'm Feeling Lucky" http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky go
Google Images http://images.google.com/images?&q=%s gi
Google News http://news.google.com/news?q=%s gn
Looksmart http://search.looksmart.com/p/search?qt=%s ls
Lycos http://search.lycos.com/default.asp?query=%s lycos
Netscape http://search.netscape.com/ns/search?query=%s netscape
Yahoo! http://search.yahoo.com/search?&p=%s yahoo
Teoma http://s.teoma.com/search?q=%s teoma

References

Name Location/URL Keyword
Dictionary.com http://dictionary.reference.com/search?q=%s dict
Dict.org http://www.dict.org/bin/Dict?Form=Dict1&Strategy=*&Database=*&Query=%s dict
HyperDictionary.com http://www.hyperdictionary.com/dictionary/%s dict
Thesaurus.com http://thesaurus.reference.com/search?q=%s thes
Wikipedia http://www.wikipedia.org/wiki/%s w
Acronym Finder http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=%s&Find=Find ac
The Acronym Archive http://taa.pileofcrap.org/acronym/%s/ acro

Other

Name Location/URL Keyword
Bugzilla http://bugzilla.mozilla.org/show_bug.cgi?id=%s bug
Google Translator http://translate.google.com/translate?u=%s trans
Internet Movie Database http://us.imdb.com/find?q=%s movie
RFCs ftp://ftp.rfc-editor.org/in-notes/rfc%s.txt rfc
Rottentomatoes.com http://www.rottentomatoes.com/search/full_search.php?search=%s rot
SourceForge Project Home Page http://%s.sourceforge.net/ sf
W3C Validator http://validator.w3.org/check?uri=%s w3c
W3Schools HTML tag reference http://www.w3schools.com/tags/tag_%s.asp html
PHP Function Ref http://www.php.net/search.php?lang=en&pattern=%s&show=quickref php?

O'Reilly

Name Location/URL Keyword
O'Reilly.com
O'Reilly Network
http://catsearch.atomz.com/search/catsearch/?sp-q=%s&sp-t=cat_search&sp-a=sp1000a5a9 you can name
the keywords
to whatever
you want
Books http://search.atomz.com/search/?sp-q=%s&sp-t=cat_search&sp-a=sp1000a5a9&sp-k=Books
Articles http://search.atomz.com/search/?sp-q=%s&sp-t=cat_search&sp-a=sp1000a5a9&sp-k=Articles
Blogs http://search.atomz.com/search/?sp-q=%s&sp-t=cat_search&sp-a=sp1000a5a9&sp-k=Weblogs

Coffee linked to lower risk of death - Los Angeles Times
Brain Ailments in Veterans Likened to Those in Athletes - New York Times
Thought-control technology invented for robot arms - BBC News
Flesh-eating condition caused by common bacteria - CNN