Reply to comment

How to enable single window mode in Safari

After browsing for a few hours in Safari it's possible to end up with a dozen windows or so because of links that open a new window (links with target="_blank"). I've always wished there was a way to have these links open in a new tab instead of a new window (sometimes referred to as single window mode).

In the latest Safari 3.1 Apple finally added a (hidden) preference! To enable single window mode and have all links open in a new tab that would normally have opened in a new window, we only need to enable the TargetedClicksCreateTabs preference using the following command (paste it into Terminal):

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

You might need to restart Safari before the setting is taken into effect. To disable the setting again, run the same command with false instead of true.

Have fun!

Update: thanks TUAW!

Update 2: check out my comment near the bottom for a possible way to do this on Windows. Update 3: I don't think The preference is not recognized in Safari for Windows.

Update 4: this setting does not appear to work in the Safari 4 Developer Preview.

Update 5: and it appears to be working again in the Safari 4 Developer Preview released on August 22nd!

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Activity stream

  • 2 September, 2010 - 08:36

  • Twitter Dennis tweeted "@annejan88 Ja, ook de tabs worden geladen van het web." 8:36am#
  • 1 September, 2010 - 18:30

  • Twitter Dennis tweeted "@BenitoAjax Kom op, € 500 vs. € 2,40 en eenmanszaak vs. enorme multinational." 6:30pm#
  • Twitter Dennis tweeted "Vraag me af waarom iOS 4.2 (voor iPad) zo lang moet duren (tot november)." 6:21pm#