This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

I want to take away the option for Start Private Browsing from Tools

more options

I don't want my teenagers to have the option to use Private Browsing but want to be able to use it for banking etc. I really just don't want it to be available from Tools

I don't want my teenagers to have the option to use Private Browsing but want to be able to use it for banking etc. I really just don't want it to be available from Tools

Chosen solution

That userChrome.css code probably won't work on a Mac because not Firefox but the OS maintains the menu bar.

Read this answer in context 👍 1

All Replies (10)

more options

You can add the following two lines of code to userChrome.css, this will remove the Private Browsing options from the menus. This code needs to go below the line that begins with @namespace. For details on this file including its location, see http://kb.mozillazine.org/UserChrome.css

#sanitizeSeparator, #privateBrowsingItem, #sanitizeItem {display:none!important;}
#privateBrowsingAutoStart {display:none!important;}


For details on editing configuration files such as userChrome.css, see http://kb.mozillazine.org/Editing_configuration

You can still use the keyboard shortcut (Command+Shift+P) to toggle private browsing.

more options

Chosen Solution

That userChrome.css code probably won't work on a Mac because not Firefox but the OS maintains the menu bar.

more options

Thanks anyway...

more options

I don't think this addressed the problem or at least in language I can understand. Please don't assume we are all computer experts. Could you give more basic instructions for this solution. What and where is userChrome.css?

more options

TonyE provided a link that explains userChrome.css
http://kb.mozillazine.org/UserChrome.css

You also need to read this about editing those types of files.
http://kb.mozillazine.org/Editing_configuration

more options

That userchrome.css code worked in FF 3, but doesn't appear to work in FF 5. I have tried taking the same userchrome.css file that killed Private Browsing in FF 3 and placing it in the \<user>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile name>\chrome directory (using a Win 7 machine) but either FF 5 doesn't recognize it or the CSS has changed because of the new interface.

Does anyone have any suggestions?

more options
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Hide Private Browsing in App menu and Tools menu */
#appmenu_privateBrowsing, #privateBrowsingItem  {display:none!important;}

/* Hide Sanitize item in App menu and Tools menu */
#appmenu_sanitizeHistory, #sanitizeSeparator, #sanitizeItem {display:none!important;}
more options

This extension disables Private Browsing, hides all the PB menu items and disables the keyboard controls, disables the clearing of browsing history, and the extension doesn't appear in the Add-ons except for the Firefox SafeMode.
https://addons.mozilla.org/en-US/firefox/addon/disable-private-browsing/

more options

This thread was originally about only removing Private Browsing from the menus and not to disable that feature completely, because the OP still wanted to use PB mode for visiting some websites.

but want to be able to use it for banking etc. I really just don't want it to be available from Tools
more options

Yes it was, but it has been revived twice. I posted about an extension that was just released, in case anyone wants to block PB.