Firefox's bookmark keyword feature is something that sets it apart from many other browsers. The classic Opera browser supported the feature as well (and called it nicknames) while Internet Explorer and Google Chrome never did.
It is interesting to note however that the new browser Vivaldi supports keywords while the new Opera browser does not.
The basic idea behind the feature is to open bookmarks quickly by using keywords that you associate with them. A keyword consists of one or multiple characters which you can type instead of the address to load the website in the browser.
That's however only part of the functionality. Keywords support parameters that you can pass along provided that the site in question supports them. And it is that feature that we are using to create a custom search option to search this site.
While I demonstrate how that is done using my own site, you can use the same method for other sites that offer similar options.
Lets get started
When you search here on this site and look at the url of the results page you will see something like this: https://www.ghacks.net/?s=firefox&submit=
The search term is firefox in this case and all results that match the term are displayed on the results page as a consequence.
You can use that address to search directly. Simply change the search term and you get a new results page.
While that is useful, it is possible to improve things further.
To search Ghacks, type gh followed by the search term in Firefox address bar, e.g. gh windows to search for Windows related articles or gh nirsoft freeware to find results for that search.
This lets you use the search engine here on this site without using Google or another search engine.
The same method applies to other sites as well. All you need to do is replace the search term with %s in the bookmark address. This is a placeholder and the term you enter after the keyword is used automatically in its place when you use the keyword search.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.