William,

Someone asked this exact question earlier this week, so if you don't mind
I'll just copy my response.


You can hide the options behind some CSS, however the underlying
> functionality will still exist unless you modify Firefox's core files.
> I've hidden some UI elements in my deployment by creating a
> "systemChrome.css" file that resides in the application directory and a
> function that deletes on start-up any userChrome.css that may override it.
>
> This should work for you:
>
> *$FF_DIR\browser\chrome\systemChrome.css*
>
> @namespace xul url("
> http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";);
>
> /* Hide Applications in Options */
> xul|richlistitem#category-application.category,
> /* Hide Content control under Applications category */
> xul|vbox#applicationsContent
>
> { display: none !important; }
>
>
>
> You can use a DOM inspector to identify additional elements that you wish
> to hide as well.
>
> Then you will need to have Firefox load this CSS on startup since it's not
> a default file.  Integrate this into your mozilla.cfg (or your
> equivalent):
>
> *$FF_DIR\mozilla.cfg*
>
> const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
> Cu.import("resource://gre/modules/FileUtils.jsm");
>
> // Load system chrome CSS to block additional UI elements.
> var css = Cc["@mozilla.org/content/style-sheet-service;1
> "].getService(Ci.nsIStyleSheetService);
> var ios = Cc["@mozilla.org/network/io-service;1
> "].getService(Ci.nsIIOService);
> var cssFile = FileUtils.getFile("AChrom", ["systemChrome.css"]);
> var cssUri = ios.newFileURI(cssFile);
> css.loadAndRegisterSheet(cssUri, 1);
>
> // Delete user profile chrome directory.
> var profChromDir = FileUtils.getDir("ProfD", ["chrome"]);
> if ( profChromDir.exists() ) {
>     profChromDir.remove(true);
> }
>
>


On Fri, Jul 22, 2016 at 12:55 PM, Coleman, William L. (LaMarr) (ESE) <
[email protected]> wrote:

> Is there a way to grey out or disable the following path from being
> modified: Tools->Options->Applications and disable the option to change the
> Action category?  I don’t want the user to be able to modify it, in
> particular the Adobe options.  Also, if there’s even an option to hide that
> entire window pane that would do as well.  I’ve already modified and
> successfully changed the mimeTypes and config files as well, but I need to
> lock down the option explained above.
>
>
>
> Thank you all in advance,
>
>
>
> LaMarr
>
> _______________________________________________
> Enterprise mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/enterprise
>
> To unsubscribe from this list, please visit
> https://mail.mozilla.org/listinfo/enterprise or send an email to
> [email protected] with a subject of "unsubscribe"
>
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to