Changing autocomplete behavior - Firefox: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (→‎External links: removed "en-US" from links)
m (→‎External links: updated SUMO link which now redirects to another article)
Line 28: Line 28:
==External links==
==External links==
*[http://support.mozilla.com/kb/Smart+Location+Bar Smart Location Bar (Firefox Support)]
*[http://support.mozilla.com/kb/Smart+Location+Bar Smart Location Bar (Firefox Support)]
*[http://support.mozilla.com/kb/How+to+disable+the+Smart+Location+Bar How to disable the Smart Location Bar (Firefox Support)]
*[http://support.mozilla.com/kb/Hiding+bookmarks+in+the+Smart+Location+Bar Hiding bookmarks in the Smart Location Bar (Firefox Support)]
*[http://bbayles.googlepages.com/disable_slb.html How to disable Firefox 3's Smart Location Bar]  at bbayles.googlepages.com  
*[http://bbayles.googlepages.com/disable_slb.html How to disable Firefox 3's Smart Location Bar]  at bbayles.googlepages.com  
*Extensions that modify the Firefox 3 Smart Location Bar behavior:
*Extensions that modify the Firefox 3 Smart Location Bar behavior:

Revision as of 13:41, 12 October 2008

The Location Bar, the Search Bar and some form fields on web pages have autocomplete dropdowns that appear with a list of previously-entered data. You can disable the display of autocomplete entries by editing your configuration files as described below.

Location Bar autocomplete is an integral part of the History mechanism and persists for the same duration as History items. In Firefox 2, the only way you can fully disable Location Bar autocomplete is by disabling History; this can be done by changing the Privacy setting, "Remember visited pages" to zero. Starting in Firefox 3, however, this only prevents additional History items from accumulating (bug 366075) and the Firefox 3 Location Bar ("Smart Location Bar") will still display bookmarks in the autocomplete drop down list, even if you clear the browsing history.

You can use these methods to modify or disable the display of autocomplete entries:

Preventing autocomplete display with UserChrome.css

Note that this method does not actually delete the internal lists of previously-entered data; it merely prevents their display. The method below has some problems. It will cause some errors appear in the JavaScript Console if you have chrome errors enabled, and in some circumstances it may cause the browser to malfunction.

In userChrome.css, add the following lines:

/* Remove autocomplete dropdown */
#PopupAutoComplete > .autocomplete-tree { display: none !important; }

If you also want to remove the dropdown button at the far right of the Location Bar, add the following line:

.autocomplete-history-dropmarker { display: none !important; }

You may also want to enable inline autocomplete.

Changing autocomplete behavior using about:config

To prevent entries from History or bookmarked items from appearing but show those that you have specifically typed into the Location Bar (url bar), use about:config to toggle browser.urlbar.matchonlytyped to true. To completely disable the Location Bar autocomplete function in Firefox 3, modify the preference browser.urlbar.maxRichResults to 0 (zero). [1]

For additional information about modifying the "Smart Location Bar" behavior in Firefox 3, see the MozillaZine forum topic, Customising the Firefox 3 Location Bar and this forum post.

See also

External links