{"id":332,"date":"2018-01-07T18:30:37","date_gmt":"2018-01-07T23:30:37","guid":{"rendered":"http:\/\/www.proginosko.com\/leechblock\/?p=332"},"modified":"2021-06-20T17:00:04","modified_gmt":"2021-06-20T21:00:04","slug":"disable-safe-mode","status":"publish","type":"post","link":"https:\/\/www.proginosko.com\/leechblock\/faq\/disable-safe-mode\/","title":{"rendered":"FAQ: How can I disable safe (troubleshoot) mode on Firefox?"},"content":{"rendered":"<p>Here are three ways to prevent access to Firefox&#8217;s safe mode (also called &#8220;troubleshoot mode&#8221;).<\/p>\n<h3>1. Set the DisableSafeMode Policy<\/h3>\n<p>The most effective and comprehensive way to prevent access to safe mode is to set the <a href=\"https:\/\/github.com\/mozilla\/policy-templates\/blob\/master\/README.md#disablesafemode\">DisableSafeMode Firefox policy<\/a>. (You should create a backup of your LeechBlock settings before you attempt this solution: Options &gt; General &gt; Export.)<\/p>\n<p>On Windows, the policy can be set via the <a href=\"https:\/\/support.microsoft.com\/en-us\/windows\/how-to-open-registry-editor-in-windows-10-deab38e6-91d6-e0aa-4b7c-8878d9e07b11\">Registry Editor<\/a>:<\/p>\n<ul>\n<li>Navigate to the following registry key:\n<ul>\n<li><strong>HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Mozilla\\Firefox<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Add a new value to that key:\n<ul>\n<li>Name: <strong>DisableSafeMode<\/strong><\/li>\n<li>Type: <strong>DWORD<\/strong> (REG_DWORD)<\/li>\n<li>Data: <strong>1<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Warning:<\/strong> Do not attempt to edit the registry unless you really know what you&#8217;re doing! You should <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/322756\/how-to-back-up-and-restore-the-registry-in-windows\">back up your registry<\/a> before making any changes. The developer of LeechBlock will not be held responsible for any damage you do to your system by editing the registry.<\/p>\n<p>For further information on setting Firefox policies on Windows, Mac, and Linux systems, see <a href=\"https:\/\/github.com\/mozilla\/policy-templates\">here<\/a>.<\/p>\n<h3>2. Remove the Help Menu Item<\/h3>\n<p>You can use the <a href=\"https:\/\/www.userchrome.org\/\">userChrome<\/a> browser customization file to remove the &#8220;Restart with Add-ons Disabled&#8221; or &#8220;Troubleshoot Mode&#8221; menu item from the Help menus. Carefully follow these steps:<\/p>\n<ul>\n<li>Locate your <a href=\"https:\/\/support.mozilla.org\/en-US\/kb\/profiles-where-firefox-stores-user-data\">Firefox profile folder<\/a>.<\/li>\n<li>Create a new folder <strong>chrome<\/strong> inside your profile folder (if it doesn&#8217;t already exist).<\/li>\n<li>Create a new file <a href=\"http:\/\/www.proginosko.com\/leechblock\/wp-content\/uploads\/2018\/01\/userChrome.css\"><strong>userChrome.css<\/strong><\/a> inside that folder with the following content:<br \/>\n \t<code>[label^='Restart with Add-ons Disabled'] { display: none !important; }<\/code><br \/>\n \t<code>[label^='Troubleshoot Mode'] { display: none !important; }<\/code><\/li>\n<\/ul>\n<p>You will need to close all Firefox windows and restart Firefox for it to take effect.<\/p>\n<p><strong>Note:<\/strong> If you&#8217;re using Firefox 69 or above, you&#8217;ll also need to go to <em>about:config<\/em> and ensure the <em>toolkit.legacyUserProfileCustomizations.stylesheets<\/em> preference is set to <strong>true<\/strong> (go <a href=\"https:\/\/www.userchrome.org\/how-create-userchrome-css.html#aboutconfig\">here<\/a> for more detailed instructions).<\/p>\n<p>(Credit to <a href=\"https:\/\/github.com\/proginosko\/LeechBlockNG\/issues\/12\">Metaception<\/a> for suggesting this solution.)<\/p>\n<p>If you also want to remove the button from the <em>about:support<\/em> and <em>about:profiles<\/em> pages,\u00a0create another file\u00a0<strong>userContent.css<\/strong> inside the same folder with the following content:<\/p>\n<p><code>#safe-mode-box { display: none !important; }<br \/>\n#restart-in-safe-mode-button { display: none !important; }<\/code><\/p>\n<p>If you also want to remove the &#8220;Create a New Profile&#8221; button from the <em>about:profiles<\/em> page, add the following line to <strong>userContent.css<\/strong>:<\/p>\n<p><code>#create-button { display: none !important; }<\/code><\/p>\n<h3>3. Disable the Safe Mode Key<\/h3>\n<p>You can set the environment variable <code>MOZ_DISABLE_SAFE_MODE_KEY<\/code> (to any value) to prevent starting Firefox in safe mode by holding down the <code>SHIFT<\/code> key.<\/p>\n<p>If you&#8217;re not sure how to set an environment variable, you can find guidance <a href=\"https:\/\/www.twilio.com\/blog\/2017\/01\/how-to-set-environment-variables.html\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are three ways to prevent access to Firefox&#8217;s safe mode (also called &#8220;troubleshoot mode&#8221;). 1. Set the DisableSafeMode Policy The most effective and comprehensive way to prevent access to safe mode is to set the DisableSafeMode Firefox policy. (You should create a backup of your LeechBlock settings before you attempt this solution: Options &gt; &hellip; <a href=\"https:\/\/www.proginosko.com\/leechblock\/faq\/disable-safe-mode\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">FAQ: How can I disable safe (troubleshoot) mode on Firefox?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-332","post","type-post","status-publish","format-standard","hentry","category-faq"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6LSwm-5m","_links":{"self":[{"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/posts\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":17,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/posts\/332\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.proginosko.com\/leechblock\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}