Skip to content

Instantly share code, notes, and snippets.

@mfilej
Created September 11, 2010 16:02
Show Gist options
  • Save mfilej/575298 to your computer and use it in GitHub Desktop.
Save mfilej/575298 to your computer and use it in GitHub Desktop.
Get rid of Safari's irritating "Are you sure you want to close this window?" prompt

prompt

Does it look familiar? It is especially annoying with Google Instant because google reloads the results without actually submitting the form and Safari thinks you are about to throw away the input.

To get rid of the prompt open up Terminal and enter the following command:

defaults write com.apple.Safari DebugConfirmTossingUnsubmittedFormText -bool FALSE

Restart safari and reclaim your sanity.

@exoboy
Copy link

exoboy commented Mar 20, 2011

hallelujah! I thought Safari was trying to kill me with this INANE and COMPLETELY useless message! Hey, Apple. If you are going to try to help user in a Microsoftian way, then PLEASE give us the option to get RID of it. It was like trying to drive a Harley with training wheels! Eeek.

@edglazer
Copy link

edglazer commented Jun 1, 2011

Kudos and huzzah! This was driving me crazy, ever so slowly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment