搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I get the URL bar to complete something like "cnn" to "http://www.cnn.com" regardless of whether CNN.com is in my history or bookmarks (instead of creating an unnecessary google search)?

  • 3 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 Matt Brubeck

more options

I'd like to have "short" URLs expand to a best guess (i.e., if I simply type CNN in the location bar (aka not-so-awesome bar), I'd like that to expand to http://www.cnn.com, whether or not CNN is in my history or bookmarks. Instead, I get a rather slowly loading Google search, which may or may not have CNN as the top hit. At one point, shortly after FF4 was released, I found a pointer to the right thing to change in about:config to get this behavior back, but I'm not having any luck now.

I'd like to have "short" URLs expand to a best guess (i.e., if I simply type CNN in the location bar (aka not-so-awesome bar), I'd like that to expand to http://www.cnn.com, whether or not CNN is in my history or bookmarks. Instead, I get a rather slowly loading Google search, which may or may not have CNN as the top hit. At one point, shortly after FF4 was released, I found a pointer to the right thing to change in about:config to get this behavior back, but I'm not having any luck now.

所有回复 (3)

more options

Here's how to get the old behavior from Firefox 3:

  1. Go to the about:config page
  2. Search for the "keyword.URL" preference
  3. Double-click on the preference and enter a new value of http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=

This will enable "browse by name" which will jump straight to the top search result for common searches.

由Matt Brubeck于修改

more options

I don't think that was the default behavior. I have in my about:config a default prefix of "www." (browser.fixup.alternate.prefix) and a default suffix of ".com" (browser.fixup.alternate.suffix), and these used to be used to construct URLs. That's what I'd like to have happen again.

more options

"Browse by name" was in fact the default setting in Firefox 3.6 and earlier. In most cases it does just what you're asking for; for example, if you type "cnn" then browse-by-name will take you straight to www.cnn.com. This add-on is another way to restore that setting, easier than the steps I gave in my previous response:

https://addons.mozilla.org/firefox/addon/browse-by-name/

Or if you just want the browser to add "www." and ".com" then you can press Command+Return after typing a word in the location bar.