Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

搜索 | 用户支持

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

详细了解

Hello! I would like to disable or hide the "Restart with Add Ons disabled" option. How would I do this?

more options

For various reasons, I need to hide (or disable if necessary, but preferably hide) the "Restart with Add Ons disabled" option. Is there any particular way to do so, perhaps with parental controls or the master password?

For various reasons, I need to hide (or disable if necessary, but preferably hide) the "Restart with Add Ons disabled" option. Is there any particular way to do so, perhaps with parental controls or the master password?

所有回复 (4)

more options

Do you mean the item in the Help menu (don't know if on Mac it is elsewhere)?

On Mac the main menu bar is under control of the Mac OS and you can't use code in userChrome.css to hide this entry (#helpSafeMode).

Keep in mind that you only have to hold down the Options key on Mac (Windows: Shift key) when starting Firefox to start in Safe Mode.

Note that you also have buttons on the about:profiles and about:support pages, but you can hide these with code in userContent.css


Add code to the userContent.css file.

@-moz-document
 url-prefix(about:support),
 url-prefix(about:profiles) {
   #action-box {display:none!important;}
}

  • create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • use a plain text editor (Windows: Notepad; Mac: Textedit) to create a (new) userChrome.css and userContent.css file in the chrome folder (file name is case sensitive)
  • paste the code in the userChrome.css and userContent.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 and userContent.css (case sensitive)
more options

Yes, I'm on Mac os High Sierra version 10.13.01 ! Does that change any of the above instructions?

more options

It doesn't change anything, but like I wrote, you can't remove/hide this item in the Help menu (or Firefox menu if it shows there on Mac). Modifying the main menu bar like can be done on Linux and Windows via userChrome.css is not possible on Mac.

more options

Ah yee, the place I need to hide it is in the Help menu @ Restart with add ons disabled. Thank you regardless though.