I want to prevent access to the Menu Bar (i.e. File, Edit, View, Tools, Help) And prevent access to restoring firefox completely.
Basically, I am setting up firefox for my Guest Account. I have already locked any download (requires my password) prevented access to add-ons and tools. Really there are only a few more things I'd like to configure.
For example when you right click at the very top of firefox it will show "Menu Bar" and "Bookmark Tab" I want to prevent users from right clicking and showing that bar and ultimately using the Help > Troubleshoot Info > Refresh Firefox, because then they could reset Firefox and gain complete access to downloading again.
Also I would like to prevent access to right clicking entirely, showing the context menu.
Ọ̀nà àbáyọ tí a yàn
cor-el said
You need to create the chrome folder and the userChrome.css file in it.
- Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- Paste the code in the userChrome.css file in the editor window
- Make sure that the userChrome.css file starts with the default @namespace line
- Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
How do I know what my namespace is? Where do I find this information?
Ka ìdáhùn ni ìṣètò kíkà 👍 0All Replies (10)
Hey Dchunt.
I found a addon, hope this will be usefull. Might solve a lot of problems. https://addons.mozilla.org/en-US/firefox/addon/public-fox/
Bradforth
Bradforth said
Hey Dchunt. I found a addon, hope this will be usefull. Might solve a lot of problems. https://addons.mozilla.org/en-US/firefox/addon/public-fox/ Bradforth
I already have that and it does not support disabling the right click feature, nor does it prevent access to the menu bar. Public Fox should also implement these features and also prevent using Mozilla support to refresh Firefox.
Ti ṣàtúnṣe
From a little research from what I can tell it will require some CSS. This is where I have been looking.
http://forums.mozillazine.org/viewtopic.php?f=38&t=2581871
Hope this helps, it looks like a hard way of doing things but it may be the only way as I havent come across a built in option before.
Edit: Also found this. https://support.mozilla.org/en-US/questions/1011085 Good luck
Ti ṣàtúnṣe
You can consider to use code in userChrome.css to hide some items, but userChrome.css can easily be disabled by holding down the Shift key to start Firefox in Safe Mode.
You can add code to the userChrome.css file below the default @namespace line.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ #toolbar-menubar, #toggle_toolbar-menubar, #toolbar-context-menu, #PanelUI-help, :-moz-any(menuitem,toolbarbutton)[oncommand="safeModeRestart();"] { display:none!important; }
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
I do not have a file called userChrome.css
You need to create the chrome folder and the userChrome.css file in it.
- Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- Paste the code in the userChrome.css file in the editor window
- Make sure that the userChrome.css file starts with the default @namespace line
- Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
Ọ̀nà àbáyọ Tí a Yàn
cor-el said
You need to create the chrome folder and the userChrome.css file in it.
- Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
- Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
- Paste the code in the userChrome.css file in the editor window
- Make sure that the userChrome.css file starts with the default @namespace line
- Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
How do I know what my namespace is? Where do I find this information?
You do not need to worry about the content of the file, you can just copy the full text starting with the @namespace line in the userChrome.css file and make sure that "All files" is selected as the type and not "Text files".
Thank you it worked.