Changing autocomplete behavior - Firefox: Difference between revisions
Alice Wyman (talk | contribs) (added link to forum "sticky" post, 'Customising the Firefox 3 Location Bar' by steviex) |
Alice Wyman (talk | contribs) (added subheadings for "Preventing autocomplete display with UserChrome.css" and "Changing autocomplete behavior using about:config". External links: Added extensions) |
||
Line 1: | Line 1: | ||
The [[:Category:Location Bar|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 configuration | editing your configuration files]] as described below. | The [[:Category:Location Bar|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 configuration | 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 ([https://bugzilla.mozilla.org/show_bug.cgi?id=366075 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 entires: | |||
== 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 [http://developer.mozilla.org/en/docs/JavaScript_Console JavaScript Console] if you have [[Dev : Useful prefs | chrome errors enabled]], and in some circumstances it may cause the browser to malfunction.''' | '''The method below has some problems. It will cause some errors appear in the [http://developer.mozilla.org/en/docs/JavaScript_Console JavaScript Console] if you have [[Dev : Useful prefs | chrome errors enabled]], and in some circumstances it may cause the browser to malfunction.''' | ||
Line 14: | Line 18: | ||
You may also want to enable [[inline autocomplete]]. | You may also want to enable [[inline autocomplete]]. | ||
To prevent entries from History | == 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). [http://forums.mozillazine.org/viewtopic.php?p=3440955#p3440955] | |||
For additional information about modifying the "Smart Location Bar" behavior in Firefox 3, see [http://forums.mozillazine.org/viewtopic.php? | For additional information about modifying the "Smart Location Bar" behavior in Firefox 3, see the MozillaZine forum topic, [http://forums.mozillazine.org/viewtopic.php?f=38&t=685365 Customising the Firefox 3 Location Bar] and [http://forums.mozillazine.org/viewtopic.php?p=3463085#p3463085 this forum post]. | ||
==See also== | ==See also== | ||
[[Deleting autocomplete entries]] | *[[Deleting autocomplete entries]] | ||
==External links== | ==External links== | ||
Line 25: | Line 30: | ||
*[http://support.mozilla.com/en-US/kb/How+to+disable+the+Smart+Location+Bar How to disable the Smart Location Bar (Firefox Support)] | *[http://support.mozilla.com/en-US/kb/How+to+disable+the+Smart+Location+Bar How to disable 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: | |||
** [https://addons.mozilla.org/en-US/firefox/addon/7429 Hide Unvisited] - This shows only URLs in your History | |||
** [https://addons.mozilla.org/en-US/firefox/addon/8310 Awesome Options] - This gives you many options to fine tune the Location Bar. | |||
** [https://addons.mozilla.org/en-US/firefox/addon/7637 Old Location Bar] - This returns the Location Bar to an almost Firefox 2 Behavior. | |||
[[Category:Location Bar]] | [[Category:Location Bar]] |
Revision as of 00:43, 8 September 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 entires:
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
- Smart Location Bar (Firefox Support)
- How to disable the Smart Location Bar (Firefox Support)
- How to disable Firefox 3's Smart Location Bar at bbayles.googlepages.com
- Extensions that modify the Firefox 3 Smart Location Bar behavior:
- Hide Unvisited - This shows only URLs in your History
- Awesome Options - This gives you many options to fine tune the Location Bar.
- Old Location Bar - This returns the Location Bar to an almost Firefox 2 Behavior.