10.5: Remove the Google search box in Safari 4 in Leopard

Feb 02, '10 07:30:00AM

Contributed by: xhinter

Leopard only hintThis hint updates this older hint to work in Safari 4 in Leopard. Disclaimer: Proceed at your own risk...Cocoa, to me, just means a hot drink made from chocolate powder!

This hint requires you have Apple's Xcode installed. Also make sure Safari is not running when you do this.

  1. In the Finder, control-click on Safari and select Show Package Contents. Navigate into Contents » Resources » English.lproj. Create a backup of ToolbarItems.nib, then open the original in Interface Builder.
  2. Set the main window's view mode to List (middle button in toolbar)
  3. Navigate into (by clicking the 'reveal' triangles) Window » Content View, and you'll see two Split View entries. Open each of those, and you'll see a Custom View and a Web Search Field. Delete the Web Search Field from both Split View entries. (Just select them and press Delete.)
  4. Save the file and quit Interface Builder.
Install keywurl to search from within the URL bar.

[robg adds: Modifying a program in this way will break code signing. If the program no longer seems to work right after this hint, the broken code signature is, most likely, the source of the problem. Also, in 10.6 the nib file is compiled, and you'll have to use a workaround, as described in this hint, to modify the nib file.]

Comments (8)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100120141506992