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

搜尋 Mozilla 技術支援網站

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

了解更多

Disable search possibility in URL bar

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

more options

Hello ! I'd like to disable the possibility to search with my search engine on firefox in the URL bar and be able only to search with the search bar. I'd like to make the url bar says an error if I type something isn't an URL. I've got Firefox 67.0.2 (latest version for the moment)

Hello ! I'd like to disable the possibility to search with my search engine on firefox in the URL bar and be able only to search with the search bar. I'd like to make the url bar says an error if I type something isn't an URL. I've got Firefox 67.0.2 (latest version for the moment)

被選擇的解決方法

Hello By_JumperX4,

Would you try this please :

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

Type in the search bar keyword.enabled

And set its value to false

Do the same with browser.fixup.alternate.enabled

and browser.urlbar.suggest.searches

Then close and restart Firefox.


In Options => Search, uncheck :

"Show search suggestions in address bar results" and : "Show search suggestions ahead of browsing history in address bar results"

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

所有回覆 (5)

more options

選擇的解決方法

Hello By_JumperX4,

Would you try this please :

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

Type in the search bar keyword.enabled

And set its value to false

Do the same with browser.fixup.alternate.enabled

and browser.urlbar.suggest.searches

Then close and restart Firefox.


In Options => Search, uncheck :

"Show search suggestions in address bar results" and : "Show search suggestions ahead of browsing history in address bar results"

more options

Thank you !!! It works ! If you have any way to remove the small search icon in the URL bar when there is nothing inside it will be perfect !

more options

By_JumperX4 said

Thank you !!! It works ! If you have any way to remove the small search icon in the URL bar when there is nothing inside it will be perfect !

I'm glad it worked - well done  !

You mention a "small search icon": I assume you're talking about a magnifying glass  ?

You would need to add code to the userChrome.css file :

https://www.reddit.com/r/FirefoxCSS/comments/9jui4b/remove_magnifying_glass_icon_from_address_bar/

more options

Other possible code for userChrome.css :

#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon {
 fill-opacity:0 !important;
}

more options

McCoy said

Hello By_JumperX4, Would you try this please : Type in the address bar about:config and press Enter (promise to be careful, if asked) Type in the search bar keyword.enabled And set its value to false Do the same with browser.fixup.alternate.enabled and browser.urlbar.suggest.searches Then close and restart Firefox.

In Options => Search, uncheck :

"Show search suggestions in address bar results" and : "Show search suggestions ahead of browsing history in address bar results"