搜尋 Mozilla 技術支援網站

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

了解更多

Exclude top domains from address bar suggestions

  • 2 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 cor-el

more options

Hi,

If I want to, say, visit slashdot.org, I type in 's' in the address bar and hope that slashdot shows up first because I visit that site often. But unfortunately, since I use 'google.se', which also contains an 's', google appears before slashdot.

I was wondering if there is a way to exclude the top domains from the suggestions showing up in the address bar. e.g. for 'google.se', the '.se' bit would be ignored and the match would only be done on 'google'.

Does anyone know a way to do this?

Hi, If I want to, say, visit slashdot.org, I type in 's' in the address bar and hope that slashdot shows up first because I visit that site often. But unfortunately, since I use 'google.se', which also contains an 's', google appears before slashdot. I was wondering if there is a way to exclude the top domains from the suggestions showing up in the address bar. e.g. for 'google.se', the '.se' bit would be ignored and the match would only be done on 'google'. Does anyone know a way to do this?

所有回覆 (2)

more options

Not exactly. There is a hidden preference for how to match domains and page titles in the autocomplete drop-down (you can modify this in the about:config preferences editor):

browser.urlbar.matchBehavior

0: Match anywhere (e.g., middle of words)
1: Match on word boundaries, then match anywhere (default)
2: Match only on word boundaries (e.g., after / or .)
3: Match at the beginning of the url or title

Since the dot in google.se is a word boundary, only 3 is likely to help in this case. I didn't notice any change when choosing 3, but maybe I needed to restart Firefox after modifying it?

The sequence of results in the autocomplete drop-down, which might also affect the in-URLbar-autofill feature, is based largely on something called frecency (frequency + recency). It's possible to adjust the way Firefox computes frecency by giving more or less weight to sites based on how you visit them: by link, by typing, etc.

https://developer.mozilla.org/en-US/docs/The_Places_frecency_algorithm

If you visit Google a lot, this might not make enough difference to change what you're getting.

Finally, if you want to erase Firefox's history just for google.se, that is possible using the "Forget about this site" feature. Note that this also will remove site-specific permissions and bookmarks. If that's of interest, I can explain it in more detail.

more options

You can also consider to use a keyword in combination of a bookmark

See also: