Firefox Logo on Purple Background hero

Mozilla Firefox lets you trigger bookmarks with a custom keyword in the address bar. With this feature and a custom bookmarklet, you can quickly search a site using Google, Bing, or DuckDuckGo. Here’s how.

The Power of Bookmarklets

Bookmarklets are browser bookmarks containing tiny snippets of JavaScript code that allow for more powerful features than a standard bookmark. In our case, we’ll be using a JavaScript bookmarklet in Firefox to do a site search using the address of the site you’re currently browsing.

For this task, we’ll need JavaScript to grab the current site address dynamically and insert it into the search string. If that sounds complex, don’t get overwhelmed. It’s really as easy as cut and paste.

RELATED: Beginner Geek: How to Use Bookmarklets on Any Device

How to Add a Custom Site Search Bookmarklet to Firefox

First, open a Firefox window and bookmark any site by pressing Ctrl+D (on Windows and Linux) or Command+D (on Mac). Name the bookmark something distinctive, like “Site Search Shortcut,” so that you can easily find it in your bookmarks library. Then click “Done.”

Bookmark a site and name the bookmark something memorable.

Next, open the Bookmarks sidebar by pressing Ctrl+B (on Windows and Linux) or Command+B (on a Mac). Locate the bookmark that you just created and then right-click it in the sidebar list and select “Properties.”

Tip: You can also edit bookmarks in the Bookmarks Manager window by selecting Library > Bookmarks > Manage Bookmarks or by pressing Ctrl+Shift+O (on Windows or Linux) or Shift+Command+O (on Mac).

A Properties window for the bookmark will appear. In the “Location:” field, paste one of the following options. To search the current site using Google, paste this:


To search the current site using Bing, paste this:


To search the current site using DuckDuckGo, paste this:


After that, click the “Keyword” field and type “cs” (for “current site”) or another mnemonic shortcut keyword you’d like to type to trigger the site search.

Paste the string in the "Location" box and enter a keyword.

When you’re done, click “Save,” and the bookmark properties window will close.

Next, navigate to any website that you’d like to search (Let’s say How-To Geek, for example.). When you’re there, click the address bar in any Firefox window and type “cs atari” and hit Enter.

Navigate to and type "cs atari" in the address bar, then hit Enter.

Instantly, you’ll see search results for “atari” among pages on the website using the search engine you chose in the bookmark above.

Search results using the custom Javascript bookmark.

You can apply this search shortcut to any site. When browsing, just type “cs [search query]” into the address bar (where [search query] is what you want to search for), hit Enter, and you’ll have instant results. Very handy and powerful. Use it for Amazon, Wikipedia, and any other site on the net.

Happy browsing!

RELATED: What Is DuckDuckGo? Meet the Google Alternative for Privacy

Profile Photo for Benj Edwards Benj Edwards
Benj Edwards is a former Associate Editor for How-To Geek. Now, he is an AI and Machine Learning Reporter for Ars Technica. For over 15 years, he has written about technology and tech history for sites such as The Atlantic, Fast Company, PCMag, PCWorld, Macworld, Ars Technica, and Wired. In 2005, he created Vintage Computing and Gaming, a blog devoted to tech history. He also created The Culture of Tech podcast and regularly contributes to the Retronauts retrogaming podcast.
Read Full Bio »