Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Hiding Restart with Add-ons disabled using custom userChrome.css

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

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;}

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;}

被采纳的解决方案

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; }
定位到答案原位置 👍 1

所有回复 (3)

more options

选择的解决方案

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; }
more options

Thanks for response, used the code below which worked for us:

menuitem#helpSafeMode {

   display: none !important;

}

more options

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.