Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Start Firefox in Safe Mode without prompt?

  • 6 svar
  • 3 har dette problem
  • 11 visninger
  • Seneste svar af darxide23

more options

I'm going to be running a script which closes and reopens Firefox at regular intervals. This script will launch Firefox in Safe Mode, however using the -safe-mode command line option still displays the prompt to start in Safe Mode or to Refresh. I can't have this prompt appear as the script can't handle it. Is there another command line option or setting in about:config I can use to disable this prompt and to make Safe Mode the default at all times as opposed to Refresh?

I'm going to be running a script which closes and reopens Firefox at regular intervals. This script will launch Firefox in Safe Mode, however using the -safe-mode command line option still displays the prompt to start in Safe Mode or to Refresh. I can't have this prompt appear as the script can't handle it. Is there another command line option or setting in about:config I can use to disable this prompt and to make Safe Mode the default at all times as opposed to Refresh?

Alle svar (6)

more options

Why do you want to run Firefox in Safe Mode?

There is no way to prevent the confirmation dialog from showing AFAIK. Safe mode disables the extensions and disables some other features.

In Firefox Safe mode these changes are effective:

  • all extensions are disabled (about:addons)
  • default theme is used (no persona)
  • default toolbar layout is used
  • xulstore.json is ignored
  • userChrome.css and userContent.css are ignored (chrome folder in profile folder)
  • JavaScript JIT compilers are disabled
  • hardware acceleration is disabled (Options > Advanced > General)
  • plugins are not affected
  • preferences are not affected
more options

cor-el said

Why do you want to run Firefox in Safe Mode?

I need to disable all addons (plugins are fine). If there's a command line option to start without addons, that would be sufficient.

Ændret af darxide23 den

more options
more options

FredMcD said

Create a second profile with no add-ons.

Less than ideal, but it works fine. Another question then.

My script (a .bat batch file in Windows) looks like this:

taskkill /f /im firefox.exe timeout /t 5 "d:\program files\Mozilla Firefox\Firefox" -p TestProf -url http://www.myurl.com timeout /t 15 "d:\program files\Mozilla Firefox\Firefox" -p TestProf -new-tab http://www.myurl.com/mypage

The script will not continue past opening the first URL until I close Firefox. With Chromium based browsers (testing with Opera specifically) the above script will execute just fine and open both URLs. Is there any way to do this with Firefox?

Ændret af darxide23 den

more options

darxide23 said

With Chromium-based browsers (testing with Opera specifically) the above script will execute just fine

The same command on two different systems may not be the same.

I think with Windows batch programs, the program only executes one command, waits until that command is finished, then goes on to the next command.

more options

FredMcD said

darxide23 said
With Chromium-based browsers (testing with Opera specifically) the above script will execute just fine

The same command on two different systems may not be the same.

I think with Windows batch programs, the program only executes one command, waits until that command is finished, then goes on to the next command.

Well it's the same system and your understanding of batch scripts is flawed. The batch will wait until a command finishes, that's true, but Chromium apparently sends back a return code to the command line once it starts up so the script continues on with the next command. Firefox isn't sending back a return code until it exits. That's no bueno for my needs.

Ændret af darxide23 den