X
Tap here to go to the mobile version of the site.

Support Forum

Is it possible to disable the input undo (^Z) on URL and search bar?

Posted

Hello.

I would like to turn off the input history feature of text boxes (the one used by ctrl-Z and ctrl-shift-Z).

I have already turned off browsing and search history but it's not enough. Since I rarely close my firefox browser I end up with hundreds of searches accessible this way.

The best would be to control the size of this history, so you could undo the last edit without having all the history there.

Is this already a feature?

Hello. I would like to turn off the input history feature of text boxes (the one used by ctrl-Z and ctrl-shift-Z). I have already turned off browsing and search history but it's not enough. Since I rarely close my firefox browser I end up with hundreds of searches accessible this way. The best would be to control the size of this history, so you could undo the last edit without having all the history there. Is this already a feature?

Chosen solution

For the urlbar, see:

You can paste this code in the command line of the Browser Console.

For the search bar you need to use "Clear Recent History" to clear "Form & Search History".

Read this answer in context 0

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

fffknol 0 solutions 11 answers

Helpful Reply

besides turning off history one also must empty the history cache via the "History" menu.

A fixed-length history, of say 4 items, sounds like a good idea for an add-on and certainly is doable.

besides turning off history one also must''' empty the history cache '''via the "History" menu. A fixed-length history, of say 4 items, sounds like a good idea for an add-on and certainly is doable.
cor-el
  • Top 10 Contributor
  • Moderator
17519 solutions 158412 answers

Chosen Solution

For the urlbar, see:

You can paste this code in the command line of the Browser Console.

For the search bar you need to use "Clear Recent History" to clear "Form & Search History".

For the urlbar, see: *https://dxr.mozilla.org/mozilla-release/source/browser/base/content/browser.js#521 You can paste this code in the command line of the Browser Console. *gURLBar.editor.transactionManager.clear(); *https://developer.mozilla.org/en-US/Tools/Browser_Console For the search bar you need to use "Clear Recent History" to clear "Form & Search History". *https://dxr.mozilla.org/mozilla-release/source/browser/modules/Sanitizer.jsm#357