How do I use domain guessing for single word but search for multiple?
I would like to configure the search bar to make smart decisions about weather it should fill in an address or search for results. At the very least I would like it to be able to search when multiple words are entered but fill in the address when it's only one word (eg: typing "zelda" would take me to www.zelda.com but "the legend of zelda" would use search)
由Link546511于
所有回复 (1)
The answer that you are probably looking for is what Google calls the I'm Feeling Lucky Search. Not quite what you describe but if there is one result that stands out as the most common result, you will get taken directly to the page. (Wouldn't work for me, I seldom find what I looking for in the first five hits.)
This will involve a change to your about:config configuration variables.
keyword.URL default string
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
The &gfns=1 is what gets you the I'm Feeling lucky search.
References:
- http://dmcritchie.mvps.org/firefox/search.htm
- About:config - MozillaZine Knowledge Base
- About:config entries - MozillaZine Knowledge Base
Personally I prevent all (external) searching from the location bar to prevent errors from being redirected to a substitute page (along with additional filtering via the Adblock Plus extension).
For zelda, I would type in the word and then use Ctrl+Enter so that it becomes www.zelda.com (with "Ctrl+Shift+Enter" gets .org, and with "Shift+Enter" gets .net).
For more information on keyboard shortcuts and the fact that those two shortcuts above can be switched see
- Firefox and other Browser Keyboard Shortcuts (Comparison Table)
http://www.mvps.org/dmcritchie/firefox/keyboard.htm
The AwesomeBar search is what you get in the location bar drop-down when you enter strings of characters that exist in the Title and/or url address of a previously visited site or one that you have in your bookmarks. You see those choices before you press "Enter".
Once you press "Enter" by default you would do a search with your currently selected (default) search engine, as if you had entered the search into the search bar.
I don't like the last method and would use a keyword shortcut to use a customized search or to go directly to a web page. But without knowledge of what is available using the Location bar to run an external search works okay for most people.
The "weather" threw me because for weather you really do want a keyword shortcut, the word you meant was whether.
More information on keyword shortcuts.
由David McRitchie于