![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
Hiding Restart with Add-ons disabled using custom userChrome.css
Need to remove the Help > Restart with Add-ons disabled option, as we are deploying FireFox to several users across the enterprise and do not what them to have the ability to disable packaged addons, Have tried adding the below to userChrome.css but no joy. Any help appreciated, Thanks.
menuitem[label="Restart with Add-ons Disabled"] {display: none !important;} menuitem[label="Restart with Add-ons Disabled..."] {display: none !important;} menuitem[label="Restart with Add-ons Disabled "] {display: none !important;}
Ausgewählte Lösung
Note that they will still be able to start Firefox in Safe mode by holding down the Shift key when starting Firefox.
Add this 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 */ #helpSafeMode { display:none!important; } #appmenu_feedbackPage+menuseparator, #appmenu_safeMode { display:none!important; }Diese Antwort im Kontext lesen 👍 1
Alle Antworten (3)
Ausgewählte Lösung
Note that they will still be able to start Firefox in Safe mode by holding down the Shift key when starting Firefox.
Add this 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 */ #helpSafeMode { display:none!important; } #appmenu_feedbackPage+menuseparator, #appmenu_safeMode { display:none!important; }
Thanks for response, used the code below which worked for us:
menuitem#helpSafeMode {
display: none !important;
}
You're welcome.
Note that you will still have that menu item in the Help menu in the Firefox menu button (menu bar hidden) if you do not include the second (#appmenu) code.