Inspired by John Gruber's post Quit Confirmation for Safari on MacOS on Daring Fireball, I updated his Quit Confirmation and created a couple more.
I'm also using Red Sweater's FastScripts script management utility to configure these scripts to run.
You can copy the Applications
folder to your ~/Library/Scripts/
folder as a starting point if you have no other scripts or selectively copy just what you want.
Made two small changes to Mr. Gruber's quit confirmation.
- If there are no open windows, don't confirm the quit.
- Change prompt title to Quit Safari?
I didn't know I could add the functionality to Safari until Gruber's post, but I've wanted a speed bump on closing a tab for a long time. It's great to finally have it, but it's not for everyone.
If the current tab is Favorites, then there is no prompt.
Why only add a quit confirmation to Safari when you can turn off Chrome's annoying ⌘W long press and do it right!