停止 Firefox 在启动时打开两个选项卡

停止 Firefox 在启动时打开两个选项卡

我去过mozilla 文档尝试找出哪些命令行参数或用户首选项将阻止 Firefox 在启动时打开两个选项卡,并且停止询问我是否愿意分享使用情况统计信息。

以下是截图 在此处输入图片描述

当我提供标志时,我可以设置什么命令行参数或用户首选项来阻止 Firefox 浏览器像这样启动-new-instance

[编辑] 我使用的是 FreeBSD,但 Linux 指令也应该没问题。我正在运行最新版本的 Firefox,此图像是 Firefox 50.1

我第一次创建后像这样启动 Firefox"/path/to/profile/prefs.js"

firefox -marionette -profile "/path/to/profile" -new-instace

该配置文件只做了几件事,基本上设置了木偶

marionette_prefs_enabled = "user_pref(\"marionette.defaultPrefs.is_enabled\", true);\n"
marionette_prefs_port = "user_pref(\"marionette.defaultPrefs.port\", %d);\n"%(proc_port)
marionette_prefs_startup_page = "user_pref(\"browser.startup.page\", false);\n"
marionette_prefs_upload_enabled = "user_pref(\"datareporting.healthreport.uploadEnabled\", false);\n"
marionette_prefs_service_enabled = "user_pref(\"datareporting.healthreport.service.enabled\", false);\n"
marionette_prefs_service_first_run = "user_pref(\"datareporting.healthreport.service.firstRun\", false);\n"
marionette_prefs_service_first_run2 = "user_pref(\"toolkit.telemetry.reportingpolicy.firstRun\", false);\n"
profile_path = '-profile \"%s\"'%(path)

正如您所看到的,我尝试根据在 Mozilla 网站上找到的文档禁用其中的很多功能,但它们仍然不起作用。因此才有这个问题。

相关内容