Changing autocomplete behavior - Firefox: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(How to remove the dropdown button)
(Use proper terms and wiki markup)
Line 1: Line 1:
The address bar and search bar both have autocomplete dropdowns that appear with a list of previously entered data. To remove them, you will need to [[Firefox : FAQs : Edit_Config | edit your config files]].
==Disabling Location and Search Bar autocomplete==
The [[Location Bar]] and [[Search Bar]] both have autocomplete dropdowns that appear with a list of previously entered data. To remove them, you will need to [[Firefox : FAQs : Edit_Config | edit your config files]].


In <code>userChrome.css</code>, add the following line:
In <code>userChrome.css</code>, add the following lines:
: <code>#PopupAutoComplete > .autocomplete-tree { display: none !important; }</code>
/* Remove autocomplete dropdown */
#PopupAutoComplete > .autocomplete-tree { display: none !important; }


If you also want to remove the dropdown button at the far right of the address bar, add the following line:
If you also want to remove the dropdown button at the far right of the Location Bar, add the following line:
: <code>.autocomplete-history-dropmarker { display: none !important; }</code>
.autocomplete-history-dropmarker { display: none !important; }


To retain some autocomplete functionality,  you may want to [[Firefox : FAQs : Enable Inline Autocomplete | enable inline autocomplete]].
You may want to [[Firefox : FAQs : Enable Inline Autocomplete | enable inline autocomplete]] instead.

Revision as of 22:02, 27 February 2005

Disabling Location and Search Bar autocomplete

The Location Bar and Search Bar both have autocomplete dropdowns that appear with a list of previously entered data. To remove them, you will need to edit your config files.

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 want to enable inline autocomplete instead.