SeaMonkey Internet Suite

Unofficial News in English language

How Cool are Custom Keywords?

1 Comment

By Asa Dotzler, edited by Daniel Wang

Taken from www-archive.mozilla.org with some smaller edits by Rainer Bielefeld as an example how Help contents from /www-archive.mozilla.org/docs/end-user/ can become revived.

Mozilla Custom Keywords ROCK! Not just for making shorthand for bookmarks but also for searches and queries. Simple keywords allow you to type a short string in the Location Bar and load its corresponding Bookmark URL.

An example is my bookmark for http://www.mozilla.org to which I’ve added the keyword m.o. So, with that set, I can type m.o in the Location Bar and it loads http://www.mozilla.org. Using keywords combined with autocomplete in Mozilla and I seldom type more than about three or four characters for all of the sites I regularly visit.

To set a keyword you must first create a bookmark for the URL. Then you add the keyword to the bookmark. Open the Bookmark Manager (Ctrl+B), choose your bookmark, and then open the Bookmark Properties window (Ctrl+I, or from the context menu). In the window simply add a short string to the Keyword field. Now close that dialog and you can type the keyword in the Location Bar, hit enter, and Mozilla will load that URL.

But that’s just the beginning. Custom keywords can be used to create shortcuts for your favorite search engines too (the ‘this ROCKS!’ part). Here’s how it works.

I’ll use Bugzilla Bug Report lookup as an example.

The keyword “bug” followed by a space and the bug number will load the URL "https://bugzilla.mozilla.org/show_bug.cgi?id=" + the bug number “12345”.

Some other really cool examples:

There are probably other great uses for this, just try a query at your favorite search engine and look at the URL it generates. If you can replace your search string in that URL with “%s” you can probably make this work. Throw in a little javascript and it’s off to the races 🙂

Advertisements

Author: rrbd

Freelancer, Engineer, Camper, Canoeist

One thought on “How Cool are Custom Keywords?

  1. We have “Bug 1270908 nav_help.xhtml: Dead Link “How Cool are Custom Keywords?”” (and others) for the problems that such contents can no longer be reached from links in SeaMonkey Helo, and “Bug 1279416 Decide how to handle User Documentation what has been moved to www-archive.mozilla.org” for possible solutions.

    Your thoughts?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s