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

10.4: Make a New Tab button for Safari's toolbar Web Browsers
Tiger only hintHere's how to hack Safari's "Add Bookmark" toolbar button into a "New Tab" button. This old hint from activewin.com doesn't work any more due to the new architecture.

Disclaimer:b the method here worked for me and I make no guarantees that it'll work for you, even if it should. Don't blame me if your shiny new OS X goes to bits because of this!)...
  1. Backup Safari.
  2. Install XCode (from the OS X DVD). A bit of overkill for that one button, yes.
  3. Open Safari's package contents (control-click and select Show Package Contents)
  4. Navigate into Contents/Resources/English.lproj
  5. Open ToolbarItems.nib (double clicking should open with Interface Builder)
  6. In the 'ToolbarItems.nib (English)' window, double click on 'First Responder.'
  7. Press Command-Shift-I to bring up the Inspector window, if it's not already open
  8. In the Inspector window, press Command-1 to make sure you're looking at 'Attributes.' Click on Add, and create a new item called newTab.
  9. In the 'Toolbar Items' window, click on one of the 'torn pictures' and press Command-Shift-I to bring up the Inspector window if it's not already open.
  10. Select the one nearest the Address bar (this should correspond to the placement in the Customise Toolbar menu); this is the 'Add Bookmark' button.
  11. Press Command-2 or choose Connections. Select 'newTab' and click 'Change Action' or simply double-click on it; there should be a round pushbutton icon next to it now.
  12. Save, quit and test.
If it works, yay! If not, ummm, it wasn't my fault. I hope you remembered step one!

[robg adds: I haven't tried this; I find the Command-T shortcut is quick enough for me...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[30,335 views]  

10.4: Make a New Tab button for Safari's toolbar | 6 comments | Create New Account
Click here to return to the '10.4: Make a New Tab button for Safari's toolbar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Make a New Tab button for Safari's toolbar
Authored by: mnb on May 05, '05 04:24:53PM

Screw it, Command-T works fine enough for me.



[ Reply to This | # ]
10.4: Make a New Tab button for Safari's toolbar
Authored by: twangster on May 05, '05 07:01:41PM

any way to add a close tab button? i used to use ollie's tab to do this. i assume it couldn't be too different than the newTab... any ideas?



[ Reply to This | # ]
10.4: Make a New Tab button for Safari's toolbar
Authored by: victory on May 05, '05 07:12:41PM
On the other hand, some of us (ok, me at least) found this to be a great tip. To yj's already concise set of directions, I would add:

11. Press Command-2 or choose Connections. Click on the Target/Action tab (if not already selected). Select 'newTab' and click 'Change Action' or simply double-click on it; there should be a round pushbutton icon next to it now.

Since the Inspector window may come up with the Outlet tab selected by default. (I'm using Xcode 2)

[ Reply to This | # ]

10.4: Make a New Tab button for Safari's toolbar
Authored by: tatilsever on Feb 05, '06 08:49:49AM

Well, it sounds easier to install Firefox with its myriad extensions, some of which will surely do this and much much more. e.g. I use "tabbrowser preferences" extension on my PC.

For now, I have a less radical approach on my Mac which does not involve any compiling, building or installation. I have set my homepage to be a blank local file that I have created by typing:

touch blank_safari.html

When I hit the homepage button in the toolbar with the middle button of my mouse it creates a new blank tab. (I have assigned the middle button to be "Button 3" through "System Preferemces".)

If I used Firefox and "tabbrowser preferences" extension, Firefox would bring the new blank tab to top while every other page opened in a new tab would still not be brought forward. Unfortunately, I could not find a way to get Safari to make that distinction.



[ Reply to This | # ]
Try Ollie's Tab
Authored by: trknopnyc on Feb 05, '06 11:18:09AM
Ollies Tab

It's a small easy to run package, and gives two combined buttons, left is new, right is to delete a tab.

no xcode or modifying of the NIBs needed (on the user end, I'm sure it does but there's a remove option too)

[ Reply to This | # ]
10.4: Make a New Tab button for Safari's toolbar
Authored by: Distearth on May 07, '08 10:58:33PM