Advertisement

Terminal Tips: Stop Safari "saved text" dialogs

We're continuing with Safari hacks for today's Terminal Tip. Have you ever typed text on a web page, but then realized that you want to go to another page without saving your input? However, when you close the window or tab, Safari rudely tells you that you have saved text and if you navigate away, your changes will not be saved.

While these dialogs can be useful, most of the time they're annoying. If you want to get rid of them, just type in this Terminal (/Applications/Utilities/) command and press enter:

defaults write com.apple.Safari DebugConfirmTossingUnsubmittedFormText NO

You will no longer see the dialog when you have typed text on a page and want to navigate away. To reverse the command, replace "NO" with "YES."

Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.