How-To: disable menus and more in Firefox (XFCE)

Forum rules
Before you post please read how to get help

How-To: disable menus and more in Firefox (XFCE)

Postby loray on Thu Jan 31, 2013 3:42 am

here are some tips for disabling Firefox User settings with XFCE 4.10. I used this in the
newest Mint to disabling History, Private Mode aso.

Steps to go:

1. Edit sysprefs.js, userChrome.css and userContent.css as root

2. Don't forget to install the Add-On keyconfig, too.
Disable all shortcuts for the private browsing, history and so on
before deactivating "tools-menu"

edit /etc/firefox/syspref.js
here we set as startup page, and locking some prefs for
ALL firefox users

lockPref("browser.startup.homepage", "");
lockPref("places.history.enabled", true);
lockPref("places.history.expiration.transient_current_max_pages", 150);
lockPref("privacy.clearOnShutdown.history", false);
lockPref("browser.privatebrowsing.autostart", false);

then edit the chrome files for the users you want to change

here we disable some menus, some menu points (german language) and the
context menu

@namespace url("");
#edit-menu { display: none !important; }
/*deactivate tools-menu after installing add-on keyconfig and removing shortcuts*/
#tools-menu { display: none !important; }
#view-menu { display: none !important; }
#helpMenu { display: none !important; }
#bookmark-menu { display: none !important; }
#history-menu { display: none !important; }
#addon-bar { display: none !important }

menuitem[label="Unsortierte Lesezeichen"] { display: none !important; }
menuitem[label="Alle Lesezeichen anzeigen"] { display: none !important; }

display: none !important;

after that, edit/create userContent.css
and disable the "about:config"


/*disable about:config*/
#configTree {display:none !important;}

don't forget to install the add-on keyconfig to remove all
shortcuts in firefox which points to History, Private Mode,
Clear History, Add-On and so on.

After that you could insert the line in the userChrome.css
#tools-menu { display: none !important; }

so the user can't setup the Add on via the Tools menu.
Level 1
Level 1
Posts: 1
Joined: Thu Jan 31, 2013 2:32 am

Linux Mint is funded by ads and donations.

Return to XFCE

Who is online

Users browsing this forum: No registered users and 6 guests