In an earlier post, I showed how to disable safe mode, but unfortunately that method doesn't work anymore. I've since discovered a way to disable safe mode. It's not as good as before, but it does work. I'm going to assume that you've read the earlier article as well as this article about customizing Firefox by writing a simple extension.
The original safe mode dialog has an option to ignore the choice to go into safe mode and just continue to start Firefox. The new dialog removed that option which is why it's a little more difficult to disable it.
So instead of doing what we did before and simply starting Firefox, we're going to tell the user that safe mode has been disabled and close Firefox. Here's how we do that.
First we need to override the built in dialog so we can show one of our own. to do that, you add this to a chrome.manifest:
override chrome://browser/content/safeMode.xul chrome://disablesafemode/content/safeMode.xul
Then we need to create a custom dialog. Here's the XUL for that:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/skin/"?> <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="," onload="window.close()"> <description> Safe Mode has been disabled. </description> </dialog>
Now when you try to start Firefox in safe mode, it will simple close the window and close Firefox.