One of the things that has kept me using Firefox over the last few years is Safari's insistence on opening links in new windows, rather than a new tab in the current window. It drives me nuts. I hate having multiple windows open.
Thankfully, the latest version of Safari (3.1) has a hidden feature that forces all links to open in a new tab, rather than a new window — even the stubborn sites like Google and Gmail finally stay in a single window.
All you have to do is open Terminal from your Applications/Utilities folder and enter the following:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Hit the enter key and you're all set.



To reverse it...
Wed, 04/02/2008 - 08:48 — Aaron...for those would want to later, would it be this?:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool falseI'm not really Terminal savvy so I like to make sure I can reverse anything I tinker with.
Thanks for the tip, I will enjoy the feature!
This is awesome! Thanks...
Wed, 04/02/2008 - 09:03 — Micha (not verified)This is awesome! Thanks...
Couldn't you just open
Wed, 04/02/2008 - 09:22 — Websnap (not verified)Couldn't you just open Safari, go to Preferences (or click Command + ,) and under the "General" tab click "Open links from applications: in a new tab in current window"? ANd while your at it, under the "Safari" menus drop-down, select "Block Pop-Up Windows". Seems simpler than using terminal for those who don't like to mess with it.
You're reading this blog for
Wed, 04/02/2008 - 21:15 — adjockyYou're reading this blog for a reason, right? Open terminal, paste, close the program, enjoy results.
Unfortunately, no.
Thu, 04/03/2008 - 12:45 — JamesUnfortunately, no. That doesn't work all the time. If it did, there would be no reason for this tip.
Command-clicking any link in
Wed, 04/02/2008 - 09:24 — Websnap (not verified)Command-clicking any link in Safari also opens the link in a tab in your current window.
FYI.
Or you could just keep
Wed, 04/02/2008 - 10:49 — PeteOr you could just keep selecting 'Merge All Windows' in Safari's menu every time a new window opens...
Work With Pete!
Doesn't Work for Me!
Thu, 04/03/2008 - 08:50 — rimglowThere are plenty of sites where this just doesn't work. Tried pasting the command in the Terminal, and checking the box in General Preferences. Is this a Leopard thing? I'm on OS 10.4.11, with the latest version of Safari.
Leopard only?
Thu, 04/03/2008 - 12:43 — JamesUnfortunately, I don't have a machine running Tiger laying around anymore.
Works Now!
Mon, 04/07/2008 - 05:26 — rimglowI'm not use to working with Terminal. After pasting the command, I didn't realize you have to press "Enter".
Sorry rimglow...
Mon, 04/07/2008 - 05:57 — JamesI should have put the "enter key" instruction in the original post. I have updated it now. Thanks for pointing it out.
Thanks for this James!
Thu, 04/10/2008 - 14:17 — Ben LeivianThanks for this James!
You're welcome!
Fri, 04/11/2008 - 05:45 — JamesYou're welcome!
Awesome thanks! Before
Tue, 07/01/2008 - 21:47 — Chatin (not verified)Awesome thanks! Before finding this tip, I had made a shortcut to 'merge all windows' but this tip is much better. Thanks!
Post new comment