為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

When I type a URL in the address field why is a search box opeing up below?

  • 9 回覆
  • 1 有這個問題
  • 27 次檢視
  • 最近回覆由 McCoy

more options

As I enter a web address into the address field, just below a search block opens up. I already have a search option available next to the address field. How can I turn off the extra search information block?

As I enter a web address into the address field, just below a search block opens up. I already have a search option available next to the address field. How can I turn off the extra search information block?

被選擇的解決方法

You can set keyword.enabled to false on the about:config page to disable search in the location bar and possibly use code in userChrome.css to hide items in the location bar drop-down list.

You can remove the search engine bar in the address bar drop down list by setting this pref to false on the about:config page.

  • browser.urlbar.oneOffSearches = false

You can use code in userChrome.css remove all suggestions from the address bar drop down list.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* remove all items from the urlbar drop down */
#PopupAutoCompleteRichResult {display:none !important;}
從原來的回覆中察看解決方案 👍 1

所有回覆 (9)

more options

See the settings for the address bar in "Options/Preferences -> Search".

由 cor-el 於 修改

more options

Hello numbat,

In addition to the above :

Would you please do this :

3-bar menu => Options => Privacy & Security => under 'Address Bar':

uncheck the three options.


Just in case you are also getting a bar, bar, listing all available search engines, would you please do this :

Type in the address bar about:config and press Enter (promise to be careful, if asked)

Type in the search bar and look for the preference :

browser.urlbar.OneOffSearches

and set its value to false

Then close and restart Firefox.

Note: that preference was disabled, but works again today.

more options

Have tried the two above suggestions. The search bar with a list of suggested search engines no longer appears, but I still get a new bar opening that mimics what I am typing and appends "- Visit". See attached image. Should I remove and re-install Firefox?

more options

You can add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* remove all items from the urlbar drop down */
#PopupAutoCompleteRichResult {display:none!important;}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close and restart Firefox when you create or modify the userChrome.css file.

more options

My apologies to all. I have failed to see what the real problem is. I failed to notice that the URL address field now has the heading "Search with Wikipedia (en) or enter address". This is the default configuration found at Tools->Options->Search->Default Search Engine. There is no option to change this from search or address to just address and use the search window to the right as the actual search function. Is there anyway to change the original address bar back to being just an address bar?

more options

選擇的解決方法

You can set keyword.enabled to false on the about:config page to disable search in the location bar and possibly use code in userChrome.css to hide items in the location bar drop-down list.

You can remove the search engine bar in the address bar drop down list by setting this pref to false on the about:config page.

  • browser.urlbar.oneOffSearches = false

You can use code in userChrome.css remove all suggestions from the address bar drop down list.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* remove all items from the urlbar drop down */
#PopupAutoCompleteRichResult {display:none !important;}
more options

You can remove the search engine bar in the address bar drop down list by setting this pref to false on the about:config page.

  • browser.urlbar.oneOffSearches = false

You can use code in userChrome.css remove all suggestions from the address bar drop down list.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* remove all items from the urlbar drop down */
#PopupAutoCompleteRichResult {display:none !important;}
more options

Thank you all for your input. For me the best option was to set keyword.enabled to false. This eliminated the search bar with all the search engine options and made the web page less busy. I don't trust my own programming skills right now to attempt to modify the userChrome.css file. Perhaps at a later date.

more options

numbat said

For me the best option was to set keyword.enabled to false. This eliminated the search bar with all the search engine options and made the web page less busy.

That's weird, cause you mentioned earlier that the second part of my post took care of that ...... Setting "keyword.ebabled" to "false" won't eliminate the search engine options, nor does it disable the 'Visit' bar.

由 McCoy 於 修改