Xatal

Bringing you safely through high school and into college

How to search websites from the location bar in FireFox

Here’s a fun and useful FireFox tip: You can search websites from the location bar too!

quick-search-from-location-bar-in-firefox

If you’re a power user, you make frequent trips to the search bar and the location bar in FireFox. The search bar is useful, but if you regularly search many different sites, this quick trick will save you untold amounts of time by allowing you to use the location bar to run search queries in this form:

<specified keyword> <specified search query>

After this simple tutorial, you’ll know how to run a Google search for “bananas” by typing this in your location bar:

google bananas

Here’s how to do it:

Before beginning this tutorial, please note that I use Chromifox, a FireFox theme that imitates Google Chrome. My screenshots look like I’m using Google Chrome, but this trick is for FireFox, not Chrome.

1. Find a site to search for.

Any site that you frequently run searches on is worth testing out. To see if this can work for the website, run a search.

2. Bookmark the search results page and organize your bookmarks

Bookmark the results page of your search by going into your “Bookmarks” menu and selecting “Bookmark this Page” (or just hit CTRL + D).

After bookmarking the page, go back into your “Bookmarks” menu and this time select “Organize Bookmarks…”. Browse to the location that you saved the bookmark into (“Bookmarks Menu” if you didn’t save it elsewhere). Select your bookmark, and you should see a few details about it at the bottom of the window. Click on the “More” button.

Information for a bookmark in the Bookmarks Library

Information for a bookmark in the Bookmarks Library

3. Create a keyword & change the location

If you look at the “location” text field, you should see the URL from earlier. Remember how you found your search in the URL? Do that again, and this time replace your search with “%s”.

For example, I would change my old Google URL to:

http://www.google.com/search?hl=en&q=%s&btnG=Search&aq=f

Then, in the box for “Keyword” specify the phrase you want to use in the location bar to make your search. For Google, I choose “google”, but you can choose whatever keyword you want. Enter the keyword into the keyword box and close the Bookmarks window.

A modified bookmark. 'google' is the new search query, and notice that 'cars' has been replaced with '%s' in the location.

A modified bookmark. 'google' is the new search query, and notice that 'cars' has been replaced with '%s' in the location.

4. Test out your search

In the location bar, type in your keyword followed by what you want to search for. If the results page for your search shows up, then congratulations! You did it!

In my example, “google” was my keyword. Let’s suppose I want to search for “president obama”. In the location bar, I would type in “google president obama” and hit Enter. This would load up the search results for Google for President Obama.

When you type in the keyword, this loads up the bookmark for that keyword. The “%s” in the location of the bookmark is replaced by everything after the keyword.

The beauty of using keywords to search

The main advantage of using keywords like this to search from the location bar is that you can have many different searches for many sites. The search bar is nice, but you have to manually select the site you want to search for from the list if it’s different than the current one. This is inconvenient and a hassle.

But by using a keyword, all you have to remember is the keyword. You can have different keywords for a bunch of different searches.

A few search URLs

Here’s a quick list of search URLs for common sites. All you need to do is save them as a bookmark and create a keyword, like you did earlier.

Keywords don’t need to be used for searches.

Using keywords for searches is a definite timesaver, but keywords in general are useful as well. If you don’t specify “%s” in the location, by simply entering the keyword into the location bar, you can quickly load a page.

Say there’s a website you go to regularly, but the URL is long and a pain to remember. Rather than always hunt around in your bookmark’s menu for it, simply create a quick keyword, type that keyword into the location bar, and hit enter to be directed to that page.

You can also use the “%s” trick in other ways besides searches. Any site that sends data in the URL is eligible. For example, I’ve set up a Google Maps page that gives me directions from my house to anywhere by just typing in “map” followed by the location I’m trying to reach.

Keywords are a surprisingly unknown feature of FireFox. Using keywords can save you a ton of time and hassle, all the while making Internet browsing less painful.

Technorati Tags: , ,

If you liked this post, please share it!
  • Digg
  • StumbleUpon
  • Technorati
  • Reddit
  • Facebook
  • del.icio.us
  • Google Bookmarks

13 Replies to “How to search websites from the location bar in FireFox”

Comments:

1. Cody

May 1st, 2009 4:54 pm

Nice tutorial. I love this method. Additionally, if you right-click most search boxes and press “Add a keyword for this search,” Firefox will automatically set a keyword search that you can use. Quicker and doesn’t require you to even glance at the URL format.

Cheers.

2. Pixellated

May 1st, 2009 6:04 pm

https://addons.mozilla.org/en-US/firefox/addon/3682

The ‘Add to Search Bar’ Firefox addon lets you add any form field to the search bar, which is accessed pretty quickly with Ctrl+K (then Ctrl+Up/Down to select the search engine). This remembers previous searches, can offer suggestions from certain sites (Google, Wiki, YouTube) as well.

3. Paul

May 2nd, 2009 2:44 am

@Cody: Wow, I actually didn’t know about that. Thanks a ton, I’ll definitely update the guide soon to show that instead — that’s so much easier.

@Pixellated: That’s pretty nifty if you’re up for changing the search engine, but the purpose of the keyword is that you don’t have to do much more than type a couple of letters. Still a useful extension though.

4. Okan from Buy Website Traffic

June 13th, 2009 10:04 am

You mentioned “Bookmark the results page of your search by going into your “Bookmarks” menu and selecting “Bookmark this Page” (or just hit CTRL + D).”

Why are we required to bookmark the results page? I think the search query url can be seen in address bar.

5. Paul

June 13th, 2009 10:51 am

@Okan: Well the alternative is to just copy/paste the search URL and substitute %s, but you need to create a bookmark at some point anyway for the results page. Remember, you’re not bookmarking the search page, you’re bookmarking the results page and substituting the query in the URL.

6. Bob

June 15th, 2009 10:18 am

That’s a pretty clever tip, but I think I’ll stick with the traditional searching methods. By the way, I also use the Chromifox theme, and I love it!

7. Nicole Foster from Affordable Web Design Services

June 18th, 2009 1:08 pm

I prefer the normal search box, but if I came across location bar, I will refer to this tutorial (:

8. Reedan from assurance deces

June 25th, 2009 7:18 am

This is a very good tutorial. And it’s very easy to understand. Yet, like NIcole, I prefer the normal search box. Yet, this is also very good.

9. Amy from Free Xbox 360

June 26th, 2009 8:46 am

The more I learn about firefox, the more I want to install it. I’m just a little wary about installing it, A- Because it isn’t Microsoft, heaven forbid! and B- I’m sharing the computer with my elderly (although she’d wack me for saying that) Mother, and I’m not sure she’d adapt to it instead of IE. Can you have both IE and Firefox installed together and maybe set different preferences for visiting websites with different profiles?

10. Paul

June 26th, 2009 11:48 am

@Amy: You certainly can use both. I’d recommend just giving Firefox a try and seeing if you like it, you can always uninstall with no problems.

11. Mark Testa from mission viejo mortgages

September 4th, 2009 6:15 am

Paul, thats cheeky lol! Very good discovery, I’ve bookmarked it. Reading at the top and seeing ‘google ‘, I was trying it but it was bringing the google search page with the keyword ‘google mykeyword’ term. I use Search bar a lot and there’s a shortcut to it as well. ( CTRL + K ), it’s for search bar and CTRL + L for the location bar. I will try out your stuff too. Thank you.

12. Alex from Teen Forums

September 8th, 2009 3:33 pm

Well, that certainly beats the hell out of searching through my dozens of custom search engines ;) Thanks

13. Beauty Racheal

February 6th, 2010 11:46 am

This will automatically save my time now that i search so many sites at the same time.Thanks to Firefox for the new invention.

Leave a Reply

 

CommentLuv Enabled

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.