Force Safari to Open All Links in New Tabs

safari.jpgMy absolute favorite advance in web browsing technology over the past decade or so is the idea of single-window browsing, or at least of multiple tabs in a single window. Just about every browser out there now allows you to keep all the different web pages you have open in a single window as multiple tabs.

The impression I have gotten as a user is that the tab feature originally was targeted mainly at keeping your web browsing session organized and not having too many windows open, but it later transformed into something that changed the outlook of web browsing for many; tabs became a must-have feature of browsers, and may users now use tabs far more than windows.

Safari has a couple of primary ways to let you use tabs. You can press Command-T, select “New Tab” from the File menu in the menu bar, or double-click on the tab bar (added in Safari 3.1) to open an empty new tab up. To open a link in a new tab, you can hold down Command before clicking it. However, some sites manage to override Safari’s commands to open pages in new tabs, and just open the link up in the same page or in a new window.

Finally, in Safari 3.1, Apple has provided us with a hidden feature that forces every single web page to open links in new tabs when you ask it to.

Simply launch the Terminal from the Utilities folder in the Applications folder and type or copy this command into it, and then restart Safari:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

If for some reason you change your mind and want to revert to your previous setting, use this command:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool false

[Terminal Command Via Mac OS X Tips]


 
 

15 Responses to “Force Safari to Open All Links in New Tabs”

  1. 4Avatars
    Pirate Pinion
    The second command should say 'false' at the end, I guess...

  2. 4Avatars
    Katie Berryhill
    Is that last command supposed to say false at the end?


  3. 4Avatars
    Charlie
    Shame on you for listing both commands with "true" instead of having the second one be "false". You are slipping...lol.

  4. 4Avatars
    Charlie
    I have Safari 3.1 and pasted the command in Terminal using true and quit Safari, opened Safari and clicked on a link and it just used the same page to open the link but did not give it it's own tab. I tried using false and it did the same thing. It does not work for me. I have Tiger, do you need Leopard for this to work?

  5. 4Avatars
    Pirate Pinion
    propably yes, charlie. it did work for me in leopard.

  6. 4Avatars
    Alan
    Same thing. It's not working. Using Leopard...I would be helpful if you can fix it for us. Thanks!

  7. 4Avatars
    Alan
    Sorry, I misunderstood the entire post. The tip is working perfectly fine. I thought the tip was about opening a link in a new tab rather in a new window but not in the same tab.

  8. Sorry about that, should have caught that. Fixed.

    And shame on us Charlie!? Where have you been? YOU are slipping :).

  9. 4Avatars
    Discerptor
    This works perfectly. It's a feature of Firefox's that I've wanted Safari to have for a while, too.

  10. 4Avatars
    in2insight
    Wow, cheers!
    Woks great, 10.5.2

  11. 4Avatars
    anonym
    seems to not work in safari 4 beta

  12. 4Avatars
    KT
    Worked like a charm for my Safari 3.1.1 and OS 10.5.3. Many thanks!

  13. 4Avatars
    Chris
    Hey guys, I'm just wondering how this can be tweaked to work in the Windows XP Safari version, as windows doesn't have the MAC OS Terminal Command and has only Command prompt. Not to sure if you can use Command prompt for Windows. Thanks

  14. 4Avatars
    Donna
    Hi, after inputting the first one a couple of times and then quitting and relaunching safari, it worked, but I'm having difficulty reverting back.

Post a comment to "Force Safari to Open All Links in New Tabs"



Support MacTips

MacTips Newsletter


Random Popular Tips

Recent Comments

Recent Discussions

MacTips Poll

What level of tips would you like to see?

View Results

Loading ... Loading ...

Friends of MacTips

Subscribe to MacTips

Site Links