搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How can I have multiple search bars adjacent to the address bar?

  • 4 回覆
  • 1 有這個問題
  • 408 次檢視
  • 最近回覆由 la3amon

more options

It sounds like peak laziness, but I'm not a fan of opening a menu every time I want to change search engine nor do I want to use a prefix (though I suppose I wouldn't mind 'g' instead of '@google', 'ddg' instead of '@duckduckgo').

I'd like to have more than one search bar akin to the one you can choose adjacent to the address bar--each with its own search engine. If such a tweak doesn't exist browser-side or even addons-side, I suppose I wouldn't mind dabbling with the code if someone can tell me what file I'd have to go to in order to do this.

I regularly bounce between Google, Bing, and Duckduckgo as the search results vary with each (and, imo, Google has been less reliable as time goes by). Such a tweak would make browsing a lot more convenient for me.

It sounds like peak laziness, but I'm not a fan of opening a menu every time I want to change search engine nor do I want to use a prefix (though I suppose I wouldn't mind 'g' instead of '@google', 'ddg' instead of '@duckduckgo'). I'd like to have more than one search bar akin to the one you can choose adjacent to the address bar--each with its own search engine. If such a tweak doesn't exist browser-side or even addons-side, I suppose I wouldn't mind dabbling with the code if someone can tell me what file I'd have to go to in order to do this. I regularly bounce between Google, Bing, and Duckduckgo as the search results vary with each (and, imo, Google has been less reliable as time goes by). Such a tweak would make browsing a lot more convenient for me.

被選擇的解決方法

Hi Snowbie,

You can assign any keyword/letter you would like to initiate a search with different search engines. If you want to use "r" for Google search you could. As far as multiple address bars, probably not gonna happen. Here are the instructions for assigning keywords: https://support.mozilla.org/en-US/kb/assign-shortcuts-search-engines

Once again, it can be any letter you wish. These instructions indicate that you need "@" in the keyword, I assure you do not. Only a single letter. Then when you want to search with that search engine just type your keyword/letter followed by a space and then your inquiry (whatever you're looking for).

Extra tip: To search bookmarks from the address bar just type "*" (no quotation marks just the asterisk) followed by a space then your search word and a list of bookmarks containing those words will show listed as a drop down in the address bar.

Happy searching. Peace, love and Linux for all.

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

選擇的解決方法

Hi Snowbie,

You can assign any keyword/letter you would like to initiate a search with different search engines. If you want to use "r" for Google search you could. As far as multiple address bars, probably not gonna happen. Here are the instructions for assigning keywords: https://support.mozilla.org/en-US/kb/assign-shortcuts-search-engines

Once again, it can be any letter you wish. These instructions indicate that you need "@" in the keyword, I assure you do not. Only a single letter. Then when you want to search with that search engine just type your keyword/letter followed by a space and then your inquiry (whatever you're looking for).

Extra tip: To search bookmarks from the address bar just type "*" (no quotation marks just the asterisk) followed by a space then your search word and a list of bookmarks containing those words will show listed as a drop down in the address bar.

Happy searching. Peace, love and Linux for all.

由 la3amon 於 修改

more options

You can double-click in the keyword column of a search engine in "*Options/Preferences -> Search" to set a keyword to this search engine. If you have added custom search engines then you may have to prefix the keyword with an '@' symbol.

more options

la3amon said

Hi Snowbie, You can assign any keyword/letter you would like to initiate a search with different search engines. If you want to use "r" for Google search you could. As far as multiple address bars, probably not gonna happen. Here are the instructions for assigning keywords: https://support.mozilla.org/en-US/kb/assign-shortcuts-search-engines Once again, it can be any letter you wish. These instructions indicate that you need "@" in the keyword, I assure you do not. Only a single letter. Then when you want to search with that search engine just type your keyword/letter followed by a space and then your inquiry (whatever you're looking for). Extra tip: To search bookmarks from the address bar just type "*" (no quotation marks just the asterisk) followed by a space then your search word and a list of bookmarks containing those words will show listed as a drop down in the address bar. Happy searching. Peace, love and Linux for all.

Thank you. While it isn't exactly what I was hoping for, I'm glad I'm able to set up 1 character keywords. And using plugins like Swift Selection Search, I can bounce between search engines quickly when selecting existing text.

There is one thing I'd like you to clarify as you didn't address it: Would it be possible for a user to do this manually by toying with some of the existing code? I don't know how complex creating a search bar is & whether reusing existing assets to make more than one will break Firefox, but it doesn't hurt to try.

more options

Hey Snowbie, I use Truffle Piggy for context search. It is highly customizable. But, to each his/her own. You can add another search bar but the secondary search bar will not accept keywords and personally I don't see any good use for this option. You can add one this way: https://support.mozilla.org/en-US/kb/add-search-bar-firefox-toolbar or just select 'customize' from the menu and drag and drop the bar. As far as coding...? Part of the fun of adding some custom code is breaking things and then trying to figure out why it broke and then make it work. I don't have the patience.