Changing autocomplete behavior - Firefox: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
mNo edit summary
(added link to forum "sticky" post, 'Customising the Firefox 3 Location Bar' by steviex)
Line 16: Line 16:
To prevent  entries from History and bookmarked items from appearing (but show those that a user has specifically typed in to the location/url bar), use [[about:config]] to toggle '''browser.urlbar.matchonlytyped''' to '''true'''.  To completely disable Location Bar autocomplete in Firefox 3,  also modify the preference [[browser.urlbar.maxRichResults]] to '''0''' (zero).  [http://forums.mozillazine.org/viewtopic.php?p=3440955#p3440955]   
To prevent  entries from History and bookmarked items from appearing (but show those that a user has specifically typed in to the location/url bar), use [[about:config]] to toggle '''browser.urlbar.matchonlytyped''' to '''true'''.  To completely disable Location Bar autocomplete in Firefox 3,  also modify the preference [[browser.urlbar.maxRichResults]] to '''0''' (zero).  [http://forums.mozillazine.org/viewtopic.php?p=3440955#p3440955]   


For more information about modifying the "Smart Location Bar" behavior in Firefox 3, see  [http://forums.mozillazine.org/viewtopic.php?p=3463085#p3463085 this forum post].
For additional information about modifying the "Smart Location Bar" behavior in Firefox 3, see  [http://forums.mozillazine.org/viewtopic.php?p=3463085#p3463085 this forum post] (more [http://forums.mozillazine.org/viewtopic.php?f=38&t=685365 here])


==See also==
==See also==

Revision as of 18:24, 8 July 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.

Note that this method does not actually delete the internal lists of previously-entered data; it merely prevents their display. Location Bar autocomplete is an integral part of the History mechanism and persists for the same duration as History items. Currently the only way to fully disable Location Bar autocomplete is to disable History. This can be done by setting the number of days of saved history to zero.

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.

To prevent entries from History and bookmarked items from appearing (but show those that a user has specifically typed in to the location/url bar), use about:config to toggle browser.urlbar.matchonlytyped to true. To completely disable Location Bar autocomplete in Firefox 3, also modify the preference browser.urlbar.maxRichResults to 0 (zero). [1]

For additional information about modifying the "Smart Location Bar" behavior in Firefox 3, see this forum post (more here)

See also

Deleting autocomplete entries

External links