Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Assign a keyboard shortcut to Private Browsing in Safari Web Browsers
The Private Browsing mode in Safari has no default keyboard shortcut, and the toggle has a modal confirmation dialog. This hint shows how to assign a keyboard shortcut to Private Browsing and bypass the confirmation dialog.

One of my favourite features of Mac OS X is the ability to assign a keyboard shortcut to any menu item of any application. This is fairly straightforward and was covered in many hints before.

In order to assign a keyboard shortcut, in this case to the Private Browsing toggle in Safari, we have to do the following:
  • Open System Preferences and navigate to 'Keyboard' section.
  • Select the 'Keyboard Shortcuts' tab.
  • Select 'Application Shortcuts' from the list.
  • Click on the Plus sign, select the application, type in the name of the menu item, and enter the shortcut.
The instruction says that we should 'Enter the exact name of the menu command you want to add.' When doing so, i.e. type 'Private Browsing…' the keyboard shortcut will execute the default action and presents the confirmation dialog window.

In order to bypass that dialog, we have to type 'Private Browsing' (without the elipsis) as the menu item name. As a result, the keyboard shortcut will instantly toggle private browsing on and off.

You will notice that there are now two menu items in Safari menu called Private Browsing, one with the shortcut assigned, and the default one with the elipsis.

The shortcut I use is Command+Shift+P. It is easy to remember, does not interfere with printing (Command+P), and makes private browsing a feature I actually use on a regular basis (e.g. when accessing my bank account).

[crarko adds: I tested this, and it works as described.]
    •    
  • Currently 4.50 / 5
  You rated: 5 / 5 (10 votes cast)
 
[12,002 views]  

Assign a keyboard shortcut to Private Browsing in Safari | 7 comments | Create New Account
Click here to return to the 'Assign a keyboard shortcut to Private Browsing in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: seika7 on Jun 13, '11 07:55:45AM

You can see the direct version (without ellipsis) in the menu by holding down the Option key.



[ Reply to This | # ]
Easy to Remember...
Authored by: yrret on Jun 13, '11 10:25:56AM

Command+Shift+P

You know. For Porn.

---
----------------------------
Microsoft is not the answer.
It is the question.
The answer is NO!



[ Reply to This | # ]
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: xhinter on Jun 13, '11 10:33:02AM

dupe
http://hints.macworld.com/article.php?story=2007102722440633



[ Reply to This | # ]
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: mtumesalaam on Jun 13, '11 03:08:29PM

Great tip. Thanks much!



[ Reply to This | # ]
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: tingo on Jun 14, '11 05:40:57AM
Command+Shift+P: not a good idea. On the Mac, that is the traditional setting for Page Setup.. And it pains me that neither Firefox nor MS Office respect that. Or that Safari has removed it.

[ Reply to This | # ]
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: Unsoluble on Jun 14, '11 08:04:18AM

Well, since it's not the Page Setup shortcut in Safari, and this procedure specifically ties the shortcut to Safari.app and nothing else, it's pretty fair game to use, I'd say. :)



[ Reply to This | # ]
Assign a keyboard shortcut to Private Browsing in Safari
Authored by: tingo on Jun 14, '11 08:10:45AM

Correct. And let's go back to the good old days, each application its own shortcuts. Atari, anyone?



[ Reply to This | # ]