Force New Safari Windows to Open in a Tab
Posted 04/16/2010 at 9:22am
| by Susie Ochs
I use Safari, and I told the preferences to open new windows in tabs, but some sites still insist on opening links in a new window. And it’s really annoying! How can I fix this?
This is a hidden preference of Safari, but if you’re using Safari 3.1 or later, you can access the preference with a Terminal command. So fire up the Terminal application, and type this command in exactly as shown here (but all on one line), and then press Return:
defaults write com.apple.Safari TargetedClicksCreateTabs
-bool true
If Safari is running, you’ll need to restart it to see your change take effect. And if you ever want Safari’s old window-openin’ behavior back, just use the same command but replace the word “true” with “false.”

Type this, press Return, restart Safari.