Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Start Firefox in Safe Mode without prompt?

  • 6 trả lời
  • 3 gặp vấn đề này
  • 13 lượt xem
  • Trả lời mới nhất được viết bởi 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?

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi darxide23 vào

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?

Được chỉnh sửa bởi darxide23 vào

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.

Được chỉnh sửa bởi darxide23 vào