I use LeechBlock to limit my time usage for certain sites, but my self control is pathetic to the point where I automatically, and very quickly end up opening Firefox in safe mode (where LeechBlock is disabled, and all sites work). Thus I am wondering if there is a way to *permanently* disable the safe mode option in firefox. I know that in case something goes goofy with firefox, I will probably have to reinstall, but that isn't too big a deal because I backup my profile regularly.
Of course solving this won't 100% get me working, but it would definately make it a much bigger ordeal to bypass LeechBlock.
Thanks to anyone who can help me (except for hypnotists - I'm not at that point yet!)!
so i figured it out. i used 7z to extract from the browser.jar file to files called SafeMode.js & SafeMode.xul. I then used skpet to make the "cancel" option the only one, so safe mode can never run! yay!
THANK YOU for this solution. LeechBlock was working great for me until I found out about -safe-mode: two work days gone.
SafeMode.xul is the one you need to edit; for me a text editor works fine (it's a pretty short XML file). The .jar file is just a zip file; rename it to .zip (and back to .jar afterwards) and most zip programs will work.
You need to replace the edited file into the zip so that it becomes content\browser\SafeMode.xul in the ZIP file (and don't use compression).
Thanks. I have the same problem. But unfortunately, I am a layman so this may not help me much!
Anyone who can make it easier?
Sorry, for reviving, but I found the answer very useful and wanted to simplify it for others.
1. Find your browser.jar file (should be in Program Files/Mozilla Firefox/chrome/browser.jar on Windows and /usr/lib/firefox-INSERT_VERSION/chrome on Ubuntu)
2. Copy browser.jar to another directory (such as the desktop) because you might not be able to edit it there if you don't have the correct permissions.
3. Rename browser.jar to browser.zip. You may have some issues in Windows with it calling it browser.zip.jar. You can fix this by enabling file extensions in Folder Options.
4. Extract browser.zip
5. Navigate to content/browser
6. Delete safeMode.xul and safeMode.js (WARNING! THIS IS NOT REVERSIBLE, you should make a backup). Then make a .zip file (you could use 7zip, IZArc, File Roller, or any other of the numerous free utilities). Call it browser.zip and copy the "content" folder into it.
7. Rename it browser.jar
8. Close Firefox, if open.
9. Copy your new browser.jar back to the directory in step 1. You may need to use "sudo mv" on Ubuntu.
10. Restart Firefox and Safe Mode will no longer be accessible!
Hope this helps!
I tried this on myself and unfortunately found an easy (too easy) way to circumvent it. If I have the normal browser open, then open safe mode in the "run" box, it will open a version of the browser with no restrictions on it.
I will try manually editing the safemode.xul file and see what I can make it do.
Amendment to the above: So when you delete the safemode files completely as suggested above, with no browsing windows open, if you execute safemode from the run menu, a tiny window with nothing in it will pop up. when you click x on this window, an unprotected browser pops up.
I followed the suggestion of removing the buttons from the safemode.xul file and it seems to work so far!
Okay, I did this but it doesn't work. Small box opens up and once i close it, FireFox opens without add-ons
Instructions for removing buttons would be helpful. I can't find that information anywhere. Thanks
Hey I would really like to disable safemode too.
But when I look in
C:/ Program Files (x86) / Mozilla Firefox / chrome - the folder is EMPTY
I can't find the browser.jar file at all.
Yeah, I am having the same trouble as feliou. My 'chrome' folder only had 'icons' in it, but not the correct files. I searched my hard drive and could not find any .jar files.
Any help would be greatly appreciated.