Go Back   MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 22, 2006, 04:59 PM   #1
whenpaulsparks
macrumors regular
 
Join Date: Jun 2004
Location: Tallahassee, FL
How to disable Private Browsing in Safari!

I was looking for a way to disable private browsing in Safari. so i looked and looked and couldn't find one, until i remembered that a lot of Apple apps have the NIB (interface builder) files in the application package. so here's how to disable the "Private Browsing" menu option in safari, effectively disabling private browsing!

(you must have Xcode tools installed... its a free download from apple.com but also included with newer macs. and putting up a modified binary would be futile, because it will be changed every safari/mac os x update, so whenever you update the software, make sure to follow these steps again.)

1. Go to applications folder in Finder
2. right click (with a mighty mouse or 2 button mouse, or Control+click for one button mice) on safari and choose "Show Package Contents"
3. Go to Contents, then Resources, then English.lproj folder (or a respective folder for whatever language you have maybe)
4. Double click on MainMenu.nib to open it in interface builder
5. look at the window with the safari menu, click on Safari to expand it, then click on the Private Browsing menu item.
6. hit the delete key and it disappears!
7. hit command+s to save, close interface builder if you want, and relaunch safari.

and there, no more private browsing option! hope this helps everyone.

Last edited by whenpaulsparks; Jan 16, 2009 at 12:15 PM. Reason: technical change
whenpaulsparks is offline   2 Reply With Quote
Old Jan 22, 2006, 05:05 PM   #2
36183
Guest
 
Join Date: Jun 2004
good find!

I am sure all parents will find it useful but i think many people will intentionally ignore this article.

out of interest is it possible to edit the interface file to add functionality to the safari menus? and if so what can be added?
36183 is offline   0 Reply With Quote
Old Jan 22, 2006, 06:23 PM   #3
whenpaulsparks
Thread Starter
macrumors regular
 
Join Date: Jun 2004
Location: Tallahassee, FL
since the source code isn't available, i think the only thing you can *add* would be an applescript command from a menu item, to run a script or something, since there's an applescript part of interface builder.
whenpaulsparks is offline   0 Reply With Quote
Old Feb 4, 2006, 01:21 AM   #4
soaerang
macrumors newbie
 
Join Date: Feb 2006
Help, Please!

I'm having trouble following the instructions above and would greatly appreciate any help. I get to step four and am able to click on the folder "MainMenu.nib", however once I go there, I can't seem to open it in interface builder. I see interface builder, but I'm not quite sure how to open up the "MainMenu.nib" folder in the interface builder. In the MainMenu.nib folder, I only have three options ("classes.nib", "info.nib", and "objects.nib") I apologize if this is all no brainer stuff...just moved to macs not too long ago. I downloaded and installed Xcode Tools, but it still doesn't seem to be working.

Thanks for helping a newbie out!

Last edited by soaerang; Feb 4, 2006 at 01:27 AM.
soaerang is offline   0 Reply With Quote
Old Feb 4, 2006, 01:32 AM   #5
soaerang
macrumors newbie
 
Join Date: Feb 2006
oh, nevermind! i figured out how to do it! thank you so much for your help anyway!
soaerang is offline   0 Reply With Quote
Old Oct 16, 2006, 03:57 PM   #6
orchid123
macrumors newbie
 
Join Date: Oct 2006
Can someone help with step 4?

I realize this is an old thread but I need help with step 4 as well..

Once I opened up mainemnu.nib it opened omnigraffle pro and from there I am lost!

These are the steps I need help with.

4. Double click on MainMenu.nib to open it in interface builder
5. look at the window with the safari menu, click on Safari to expand it, then click on the Private Browsing menu item.
6. hit the delete key and it disappears!
7. hit apple+s to save, close interface builder if you want, and relaunch safari.

Thanks!
orchid123 is offline   0 Reply With Quote
Old Oct 16, 2006, 03:59 PM   #7
WildCowboy
Administrator/Editor
 
WildCowboy's Avatar
 
Join Date: Jan 2005
Do you have Xcode/Developer Tools installed?

If so, right-click or control-click on MainMenu.nib and go to Open With and choose Interface Builder.
__________________
Editor in Chief, MacRumors
WildCowboy is offline   0 Reply With Quote
Old Oct 28, 2006, 07:18 PM   #8
excitinglife
macrumors newbie
 
Join Date: Oct 2006
Is Disabling Private Browsing in Safari irreversible?

I was considering disabling Private Browsing in Safari based on these instructions.

However, I wonder if it is irreversible before doing so. Does anyone know if it is and if so, what needs to be done to make it happen?
excitinglife is offline   0 Reply With Quote
Old Oct 28, 2006, 08:20 PM   #9
Texas04
macrumors 6502a
 
Texas04's Avatar
 
Join Date: Jul 2005
Location: Texas
Send a message via AIM to Texas04
Why dont you password your mac... make a "roomate" username and enable parental controls...
I have it so that after sleep or screen saver it asks for my password

www.iAlertU.com if you dont want them messin w/ it
__________________
-The Tex.
Texas04 is offline   0 Reply With Quote
Old Oct 29, 2006, 07:15 AM   #10
semaja2
macrumors 6502a
 
Join Date: Dec 2005
Location: Adelaide
Send a message via MSN to semaja2
Quote:
Originally Posted by Texas04 View Post
Why dont you password your mac... make a "roomate" username and enable parental controls...
I have it so that after sleep or screen saver it asks for my password

www.iAlertU.com if you dont want them messin w/ it
Why not MultiAlarm :P sure the support for mouse and keyboard movement is buggy but still does its job :P

PS. I think ill make a script to remove that option, problem still remains that the user needs XCode
__________________
InsomniaX | WiFiScriptor | Utility Lock
semaja2 is offline   0 Reply With Quote
Old Jan 26, 2010, 04:56 PM   #11
macgirl22
macrumors newbie
 
Join Date: Jan 2010
Help

Hello whenpaulsparks. I have tried the steps listed as recommended by and and others and I got to the part :
Go to applications folder in Finder
2. right click (with a mighty mouse or 2 button mouse, or Control+click for one button mice) on safari and choose "Show Package Contents"
3. Go to Contents, then Resources, then English.lproj folder (or a respective folder for whatever language you have maybe)
4. Double click on MainMenu.nib to open it in interface builder
I am not able to double click on this and when I do nothing happens. No window pops up or anything. 2 pages to the right of it appears and those I can't even open.
I would appreciate your help. Thanks
macgirl22 is offline   0 Reply With Quote
Old Jun 7, 2010, 04:49 PM   #12
jumbb
macrumors regular
 
Join Date: May 2010
Hi whenpaulsparks!
I used to be able to do this with xcode but recently, i installed safari 4.0.5 for Leopard and I can't do it anymore!
This is what appears:




I don't know what to do! Some people have told me it's no longer possible, but...what can I do now? Do you have any more ways to do this? Thanks!
jumbb is offline   0 Reply With Quote
Old Jun 8, 2010, 10:32 AM   #13
Darwin-ksh
macrumors newbie
 
Join Date: Feb 2010
Quote:
Originally Posted by whenpaulsparks View Post
since the source code isn't available, i think the only thing you can *add* would be an applescript command from a menu item, to run a script or something, since there's an applescript part of interface builder.
Are you sure there isn't any source available? I was under the impression that only the GUI was closed source and Safari was just cleaned up Webkit.
Darwin-ksh is offline   0 Reply With Quote
Old Aug 8, 2010, 03:06 PM   #14
MKRoig
macrumors newbie
 
Join Date: Aug 2010
Quote:
Originally Posted by jumbb View Post
Hi whenpaulsparks!
I used to be able to do this with xcode but recently, i installed safari 4.0.5 for Leopard and I can't do it anymore!
This is what appears:




I don't know what to do! Some people have told me it's no longer possible, but...what can I do now? Do you have any more ways to do this? Thanks!
I'm having the same problem only I have safari 5.0 any help would be greatly appreciated!
MKRoig is offline   0 Reply With Quote
Old Nov 9, 2010, 03:15 PM   #15
spoiledmatt
macrumors newbie
 
Join Date: Nov 2010
Private Browsing

I am in the same boat....When I double click on the MainMenu.nib, I receive

"the document"mainmenu.nib" could not be opened. Interface Builder cannot open compiled nibs. Try opening the source docuement instead of the compiled nib."

If anyone could help it would be greatly appreciated!
spoiledmatt is offline   0 Reply With Quote
Old Nov 9, 2010, 03:30 PM   #16
sth
macrumors 6502a
 
Join Date: Aug 2006
Location: The old world
Just a quick question: Why would anyone want to do that?

You can delete your history, cookies and cache even without having the private browsing option, so hiding it won't hinder anyone...
__________________
Survived "Waiting for Arrandale" ^^
sth is offline   2 Reply With Quote
Old Nov 11, 2010, 12:50 PM   #17
kystherayn
macrumors newbie
 
Join Date: Oct 2010
disable private browsing

I know this is a very old thread, but i have tried those steps several times and it does not work. I have mac osx 10.6.4
kystherayn is offline   0 Reply With Quote
Old Nov 11, 2010, 04:07 PM   #18
cherry su
macrumors 65816
 
cherry su's Avatar
 
Join Date: Feb 2008
Quote:
Originally Posted by excitinglife View Post
I was considering disabling Private Browsing in Safari based on these instructions.

However, I wonder if it is irreversible before doing so. Does anyone know if it is and if so, what needs to be done to make it happen?
It is reversible. Before modifying the file, you could copy the original version to a safe location. If you have a Time Machine Backup of Safari, then you are covered.
__________________
MacBook Air 13/1.86/4/128 : Dell Streak 5 : Canon EOS 5D Mark II + 24-105L
MIT '14
My Blog
cherry su is offline   0 Reply With Quote
Old Nov 20, 2010, 05:29 PM   #19
sginmackenzie
macrumors newbie
 
Join Date: Dec 2009
Maybe I'm the only one...

Ok, so I'm trying to follow these directions, and here's what I'm getting:

Safari > Contents > Resources > English.lproj > MainMenu.nib (it's a folder) > keyedobjects.nib (un-opening file)

Am I missing something? I'm not even seeing an option for a "mainmenu.nib" file to open. Any insights here?
sginmackenzie is offline   0 Reply With Quote
Old Nov 21, 2010, 12:54 PM   #20
sth
macrumors 6502a
 
Join Date: Aug 2006
Location: The old world
This thread still makes no sense at all to me...
__________________
Survived "Waiting for Arrandale" ^^
sth is offline   2 Reply With Quote
Old Feb 9, 2011, 10:26 PM   #21
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Quote:
Originally Posted by sth View Post
Just a quick question: Why would anyone want to do that?

You can delete your history, cookies and cache even without having the private browsing option, so hiding it won't hinder anyone...
For the same reason why anyone would want Private Browsing, namely the convenience.

Im suffering relapses right now so anything I can do to make it take just a bit longer, make it just a bit less convenient, give me just a few more seconds to think about before doing, short of actually impairing my ability to do productive things, is a blessing.

Unfortunately, this is no longer an option. Looks like I'll just need a stronger will...
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Feb 13, 2011, 02:21 PM   #22
schwarzmuller
macrumors newbie
 
Join Date: Jan 2011
Because safari now uses precompiled nib's which u can't modify:

I took the MainMenu.nib from an older version of safari.
Just open the file, of your language, with interfacebuilder and delete what you want. Make a copy of the original mainmenu.nib and replace it with the modifyd one.
I don't know if the safari menu changed a lot, since i don't use that browser. I did a quick test and it works ok.

Enjoy

Edit: Files are one post below and are pre-modified.

Last edited by schwarzmuller; Apr 21, 2011 at 09:33 AM. Reason: uploaded file not included?
schwarzmuller is offline   0 Reply With Quote
Old Mar 25, 2011, 01:19 AM   #23
hellroc
macrumors newbie
 
Join Date: Mar 2011
im stuck at number 5 where is the window?

Quote:
Originally Posted by whenpaulsparks View Post
I was looking for a way to disable private browsing in Safari. so i looked and looked and couldn't find one, until i remembered that a lot of Apple apps have the NIB (interface builder) files in the application package. so here's how to disable the "Private Browsing" menu option in safari, effectively disabling private browsing!

(you must have Xcode tools installed... its a free download from apple.com but also included with newer macs. and putting up a modified binary would be futile, because it will be changed every safari/mac os x update, so whenever you update the software, make sure to follow these steps again.)

1. Go to applications folder in Finder
2. right click (with a mighty mouse or 2 button mouse, or Control+click for one button mice) on safari and choose "Show Package Contents"
3. Go to Contents, then Resources, then English.lproj folder (or a respective folder for whatever language you have maybe)
4. Double click on MainMenu.nib to open it in interface builder
5. look at the window with the safari menu, click on Safari to expand it, then click on the Private Browsing menu item.
6. hit the delete key and it disappears!
7. hit command+s to save, close interface builder if you want, and relaunch safari.

and there, no more private browsing option! hope this helps everyone.
im stuck at number 5 where is the window?
hellroc is offline   0 Reply With Quote
Old Apr 21, 2011, 09:31 AM   #24
schwarzmuller
macrumors newbie
 
Join Date: Jan 2011
Pre-modified files available, just download and read instructions inside.

Last edited by schwarzmuller; Feb 3, 2013 at 08:28 AM.
schwarzmuller is offline   0 Reply With Quote
Old Jun 10, 2011, 02:18 PM   #25
mummabear
macrumors newbie
 
Join Date: Jun 2011
Thank you for this information on how to disable Safari. I used the pre modified folders today. Does anyone have feedback on how well they work? I would also appreciate more help on parental controls.
mummabear is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Applications > Mac Applications and Mac App Store

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari private browsing abz1981 iOS 7 8 Sep 20, 2013 03:51 AM
Private browsing abz1981 iOS 6 0 Sep 14, 2013 04:20 PM
safari private browsing? gimmeiphone iOS 7 4 Jun 19, 2013 05:37 AM
Safari saves video to drive even in private browsing mode junkster OS X 10.8 Mountain Lion 8 Dec 27, 2012 03:54 AM
Safari Private Browsing- Saving Info Snake42490 Mac Basics and Help 1 Nov 23, 2012 06:37 PM

Forum Jump

All times are GMT -5. The time now is 06:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC