Changing autocomplete behavior - Firefox: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(Use proper terms and wiki markup)
m (→‎External links: added bug 740076)
 
(46 intermediate revisions by 10 users not shown)
Line 1: Line 1:
==Disabling Location and Search Bar autocomplete==
The [[:Category:Location Bar|Location Bar]] (also called the URL or address bar),  the [[Search Bar]], and some form fields on web pages have autocomplete dropdowns that appear with a list of previously-entered data. Starting in Firefox 14,   as you type URLs into the Location Bar, Firefox also automatically completes the URL (called "[[inline autocomplete]]") in addition  to the drop-down autocomplete list.  
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 lines:
*To disable or enable  inline autocomplete , see [[Inline autocomplete]].
/* 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:
* To disable autocomplete in form fields and the Search Bar, go to "[[Menu differences|Tools ->  Options]] ->  Privacy".  Under History, set "Firefox will:" to "Use custom settings for history" and remove the check mark from the box that says "Remember search and form history".  For more information, see [http://support.mozilla.com/kb/Form+autocomplete Form autocomplete] at Firefox Support.
  .autocomplete-history-dropmarker { display: none !important; }


You may want to [[Firefox : FAQs : Enable Inline Autocomplete | enable inline autocomplete]] instead.
In Firefox 3 and above, when you start typing into the Location Bar,  the autocomplete drop-down will show matching sites from your browsing history and bookmarks.  You can modify or disable the display of autocomplete entries in the Location Bar, as explained below.
 
== Changing Location Bar autocomplete behavior==
As you type into the Location Bar, the default behavior is to display all results from both bookmarked items and your browsing history of visited pages in a drop-down list.  (This feature is often called the "Awesome Bar").  You can change Location Bar autocomplete behavior in "[[Menu differences|Tools -> Options]] -> Privacy / Location Bar"  by selecting one of the options in the "When using the location bar, suggest:" drop-down menu:
* History and Bookmarks (default) - Displays both visited pages in history and bookmarked items (no filtering)
* History - Restricts results to visited pages in history
* Bookmarks - Restricts results to bookmarked items
* Nothing - No autocomplete results are displayed
Selecting "Nothing" sets the preference [[browser.urlbar.autocomplete.enabled]] to '''false''' and completely disables Location Bar autocomplete.  This also disables [[inline autocomplete]] in Firefox 14 and above. [https://bugzilla.mozilla.org/show_bug.cgi?id=740076]
 
Selecting "History and Bookmarks", "History", or  "Bookmarks" enables autocomplete (if disabled) and sets a corresponding value in the preference [[browser.urlbar.default.behavior]]. 
 
As long as autocomplete is enabled,  you can also change autocomplete Location Bar behavior using [[about:config]],  by changing the '''browser.urlbar.default.behavior''' preference value .  For example,  setting the value to '''1'''  restricts results to visited pages in history, setting the value to  '''2''' restricts results to bookmarked items, and resetting the preference restores the default value '''0''' (no filtering).  You can also restrict autocomplete results to tagged items (value = '''4''') or to typed items (value = '''32''') or you can  match only the title (value = '''8''') or the URL (value = '''16''').  You can also add filters together in various combinations, such as setting the value to '''3''' (1+2)  to display only visited bookmarks; or, setting the value to '''17''' (1+16) to display only visited pages with a URL match; or, setting the value to '''49''' (1+16+32) to display only visited pages with a URL match for typed items.  See the article [[browser.urlbar.default.behavior]] for more information.  [http://mxr.mozilla.org/comm-central/source/mozilla/browser/app/profile/firefox.js#242]
 
==See also==
*[[Deleting autocomplete entries]]
*[[Location Bar search]]
*[[Viewing_the_browsing_history_-_Firefox#Deleting_history_items|Viewing the browsing history - Firefox (Deleting history items)]]
 
==External links==
*[http://support.mozilla.com/kb/Location+bar+autocomplete  Location bar autocomplete (Firefox Support)]
*[http://support.mozilla.com/kb/Cannot+clear+Location+bar+history Cannot clear Location bar history (Firefox Support)]
'''Extensions'''
*Extensions that modify the Firefox 3 Location Bar behavior:
** [https://addons.mozilla.org/firefox/addon/7429 Hide Unvisited] - This shows only URLs in your History
** [https://addons.mozilla.org/firefox/addon/7637 Old Location Bar] -  This returns the Location Bar to an almost Firefox 2 Behavior.
*Extensions that only modify the appearance of the Firefox 3 Location bar autocomplete
** [https://addons.mozilla.org/firefox/addon/6227 oldbar] oldbar makes the location (URL) bar look like Firefox 2 (one line per url)
** [https://addons.mozilla.org/firefox/addon/7674 Locationbar Limit] -  Change number of visible results shown in locationbar dropdown when searching (with/without oldbar)
 
'''Related bug reports'''
*[https://bugzilla.mozilla.org/show_bug.cgi?id=393508 Bug 393508] - Mockup: Location Bar Autocomplete for Firefox 3
*[https://bugzilla.mozilla.org/show_bug.cgi?id=405745 Bug 405745] - [meta] improve url bar autocomplete results
*[https://bugzilla.mozilla.org/show_bug.cgi?id=740076 Bug 740076] - autoFill should be disabled by the autocomplete preference
 
[[Category:Location Bar]]
[[Category:Visual customizations (Firefox)]]
[[Category:Configuration]]
[[Category:Privacy and security]]
[[Category:History]]

Latest revision as of 23:53, 25 November 2012

The Location Bar (also called the URL or address bar), the Search Bar, and some form fields on web pages have autocomplete dropdowns that appear with a list of previously-entered data. Starting in Firefox 14, as you type URLs into the Location Bar, Firefox also automatically completes the URL (called "inline autocomplete") in addition to the drop-down autocomplete list.

  • To disable autocomplete in form fields and the Search Bar, go to "Tools -> Options -> Privacy". Under History, set "Firefox will:" to "Use custom settings for history" and remove the check mark from the box that says "Remember search and form history". For more information, see Form autocomplete at Firefox Support.

In Firefox 3 and above, when you start typing into the Location Bar, the autocomplete drop-down will show matching sites from your browsing history and bookmarks. You can modify or disable the display of autocomplete entries in the Location Bar, as explained below.

Changing Location Bar autocomplete behavior

As you type into the Location Bar, the default behavior is to display all results from both bookmarked items and your browsing history of visited pages in a drop-down list. (This feature is often called the "Awesome Bar"). You can change Location Bar autocomplete behavior in "Tools -> Options -> Privacy / Location Bar" by selecting one of the options in the "When using the location bar, suggest:" drop-down menu:

  • History and Bookmarks (default) - Displays both visited pages in history and bookmarked items (no filtering)
  • History - Restricts results to visited pages in history
  • Bookmarks - Restricts results to bookmarked items
  • Nothing - No autocomplete results are displayed

Selecting "Nothing" sets the preference browser.urlbar.autocomplete.enabled to false and completely disables Location Bar autocomplete. This also disables inline autocomplete in Firefox 14 and above. [1]

Selecting "History and Bookmarks", "History", or "Bookmarks" enables autocomplete (if disabled) and sets a corresponding value in the preference browser.urlbar.default.behavior.

As long as autocomplete is enabled, you can also change autocomplete Location Bar behavior using about:config, by changing the browser.urlbar.default.behavior preference value . For example, setting the value to 1 restricts results to visited pages in history, setting the value to 2 restricts results to bookmarked items, and resetting the preference restores the default value 0 (no filtering). You can also restrict autocomplete results to tagged items (value = 4) or to typed items (value = 32) or you can match only the title (value = 8) or the URL (value = 16). You can also add filters together in various combinations, such as setting the value to 3 (1+2) to display only visited bookmarks; or, setting the value to 17 (1+16) to display only visited pages with a URL match; or, setting the value to 49 (1+16+32) to display only visited pages with a URL match for typed items. See the article browser.urlbar.default.behavior for more information. [2]

See also

External links

Extensions

  • Extensions that modify the Firefox 3 Location Bar behavior:
  • Extensions that only modify the appearance of the Firefox 3 Location bar autocomplete
    • oldbar oldbar makes the location (URL) bar look like Firefox 2 (one line per url)
    • Locationbar Limit - Change number of visible results shown in locationbar dropdown when searching (with/without oldbar)

Related bug reports

  • Bug 393508 - Mockup: Location Bar Autocomplete for Firefox 3
  • Bug 405745 - [meta] improve url bar autocomplete results
  • Bug 740076 - autoFill should be disabled by the autocomplete preference