ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Any way to get "Tab to Search" functionality ala Chrome's address bar into FF?

  • 10 ردود
  • 90 have this problem
  • 2064 views
  • آخر ردّ كتبه Phoenix616

more options

I've gotten so used to the "Press Tab to Search" functionality of Chrome that it always seems like an additional step in Firefox to go to the actual website and begin searching from that page's search box.

For example, whether it's YouTube, Amazon, Wikipedia, or any other site with its own search function, all I have to do is start typing "yout," Chrome will automatically fill it out to youtube.com with an option to press Tab to automatically start searching youtube from the address bar. (See attached screenshots).

Is there any way to replicate this functionality in Firefox?

Thanks.

I've gotten so used to the "Press Tab to Search" functionality of Chrome that it always seems like an additional step in Firefox to go to the actual website and begin searching from that page's search box. For example, whether it's YouTube, Amazon, Wikipedia, or any other site with its own search function, all I have to do is start typing "yout," Chrome will automatically fill it out to youtube.com with an option to press Tab to automatically start searching youtube from the address bar. (See attached screenshots). Is there any way to replicate this functionality in Firefox? Thanks.

الحل المُختار

In addition to the clickable icons, Firefox has a concept of a keyword search.

Let's say you're on the YouTube home page. You right-click the search box and choose Add a Keyword for this search. A small form pops up where you can name your search engine. Then in the lower part, you can type yt and add the bookmark.

Now, in the address bar, type yt then a space, then your search for YouTube. I'm sure you'll miss typing the tab key... but you'll have to get used to space instead.

(Of course, if you prefer to use y instead of yt, it's your call.)

Read this answer in context 👍 22

All Replies (10)

more options

Here are the screenshots of the function in action:

more options

You can add YouTube as a search engine to the search bar. You will notice a green plus (+) icon attached to the search engine icon when the website offers a search engine. If you click this icon then you can find an item in the drop-down menu to add YouTube Video Search to the search bar.

more options

الحل المُختار

In addition to the clickable icons, Firefox has a concept of a keyword search.

Let's say you're on the YouTube home page. You right-click the search box and choose Add a Keyword for this search. A small form pops up where you can name your search engine. Then in the lower part, you can type yt and add the bookmark.

Now, in the address bar, type yt then a space, then your search for YouTube. I'm sure you'll miss typing the tab key... but you'll have to get used to space instead.

(Of course, if you prefer to use y instead of yt, it's your call.)

more options

I use yt for the YouTube main site and ys for YouTube Search.

more options

Thanks to you both. I guess I have to relearn a few things, but I'm totally impressed with the speed of Firefox Quantum. It's been almost a decade since FF was my default browser, but now that I'm learning a few of these tricks, I think it can firmly sit in my taskbar from now on.

Thanks again.

more options

Is there maybe an addon that adds the same functionality to Firefox?

Having to add every single site that has Open Search support manually to Firefox and define (and remember) a shortcut for each of them is really far away from the usability that Chrome's omnibox offers and not a real solution for this question.

With Chrome you can also just start typing the url like you would normally do and it will auto suggest the search, something Firefox can't do even with the search shortcuts.

more options

Hi Phoenix616, you can search for Add-ons on the following page. Let us know if you find anything useful:

https://addons.mozilla.org/firefox/extensions/

more options

jscher2000 said

Hi Phoenix616, you can search for Add-ons on the following page. Let us know if you find anything useful: https://addons.mozilla.org/firefox/extensions/

Already did that and nothing turned up. Not sure if I used the wrong search terms though as "Omnibox" gets hijacked by addons that don't actually work that way and Chrome doesn't have any other term for that functionality. Also just using the "Open Search" term has similar difficulties as it just uses common English words as the name...

more options

Hi Phoenix616, I'm not sure my search skills are any better than yours.

There is a code example for the back end of an extension to customize the address bar search behavior to use a particular site search engine:

https://github.com/mdn/webextensions-examples/tree/master/firefox-code-search

However, that example is for one site and uses predefined suggestion and result URLs. So it's only part of the story.

I don't know how easy or safe it would be to reach within the current web page and look for this tag

<link rel="search" type="application/opensearchdescription+xml" href="/path/to/file">

and then load that xml file containing the OpenSearch definition, parse out the URLs and parameters, and use those in the address bar drop-down. I haven't experimented with Chrome's feature but I assume Chrome has some boundaries on where it sends your query and loads results from (for example, a same site rule). That should be thought out, for privacy reasons at least.

more options

Well my goal would not be to display results directly in the bar, just having the ability to directly search through every site you ever visited that has an Open Search description would be enough.

Thanks for the pointer though, maybe I just make an addon myself (never made one though...) If I really end up doing it I make sure to post it here.