說(shuō)明:所有適用于 Firefox 的參數均可直接在MyFirefox設置窗口的“命令行參數”中添加或者加在 MyFirefox 的快捷方式目標路徑后面,或者寫(xiě)入MyFirefox.ini文件中,這些參數會(huì )被傳遞給 Firefox。如何使用命令行參數
以下是啟動(dòng)Firefox時(shí)打開(kāi)mozilla firefox網(wǎng)站的例子:
方法1:在開(kāi)始菜單的”運行“中輸入:firefox -url www.mozilla.com
對綠色版、免安裝版或便攜版則需加路徑,如:D:\Program Files\Mozilla Firefox\Firefox\firefox.exe -url www.mozilla.com
方法2:在程序的快捷方式的 屬性-目標 的后面加上參數:
比如目標是:”D:\Program Files\Mozilla Firefox\Firefox\firefox.exe“
則在它后面加上參數(參數前有個(gè)空格):”D:\Program Files\Mozilla Firefox\Firefox\firefox.exe“ -url www.mozilla.com
常用命令行參數:
用戶(hù)配置
說(shuō)明:Firefox的設置、書(shū)簽等數據都保存在所謂的配置(profile)文件夾中。不同用戶(hù)可自定義配置。
如果您使用 MyFirefox,則以下與用戶(hù)配置文件有關(guān)的參數基本沒(méi)什么用,MyFirefox 本身就是用來(lái)自定義配置文件夾的。-CreateProfile profile_name
新建名為 profile_name 的配置,但不啟動(dòng)程序。profile_name 中不能包含空格( )。
firefox -CreateProfile JoelUser-CreateProfile "profile_name profile_dir"
在 profile_dir 目錄下新建名為 profile_name 的配置,但不啟動(dòng)程序。注意 profile_name 和 profile_dir 要在同一對引號內。
注意: profile_dir 不能是已經(jīng)存在的路徑, profile_name 也不能是已經(jīng)存在的配置。
firefox -CreateProfile "JoelUser c:\internet\moz-profile"-ProfileManager or -P
啟動(dòng)配置管理器。
-P "profile_name"
跳過(guò)配置管理器直接用 profile_name 配置啟動(dòng)程序。對多配置有用。注意 profile_name 區分大小寫(xiě)。
firefox -P "Joel User"-profile "/path/to/profile"
用所給的配置啟動(dòng)。
-no-remote
允許多個(gè)程序同時(shí)運行,可實(shí)現多個(gè)版本、配置的Firefox同時(shí)運行。
firefox -no-remote -P "Another Profile"-migration
啟動(dòng)導入向導。
-override /path/to/override.ini
載入指定的 override.ini 文件用以覆蓋 application.ini (browser/app/application.ini )。 載入以下內容的 override.ini 文件可以避免啟動(dòng)時(shí)出現轉移向導。
[XRE]
EnableProfileMigrator=0
瀏覽器-browser
啟動(dòng)瀏覽器組件。
-url URL
用瀏覽器打開(kāi)網(wǎng)址。 -url 可以省略。
firefox www.mozilla.com-new-tab URL
在新標簽頁(yè)中打開(kāi)網(wǎng)址。
-new-window URL
在新標簽頁(yè)或新窗口中打開(kāi)網(wǎng)址,取決于瀏覽器設置。
-search term
用您的默認搜索引擎搜索。
-preferences
打開(kāi)選項/設置窗口。
-setDefaultBrowser
將 Firefox 設為默認瀏覽器。
其它組件 -jsconsole
啟動(dòng)錯誤控制臺。
-inspector URL
啟動(dòng) DOM Inspector 并檢查所給的網(wǎng)址(網(wǎng)址為可選項)。
-venkman
啟動(dòng) JavaScript 調試,不知道怎么用。
Chrome-chrome chrome_URL
加載指定的 chrome(chrome 怎么翻譯都覺(jué)得怪怪的,就叫它 chrome 吧)。
firefox -chrome -register chrome_URL
注冊指定的 chrome 但不啟動(dòng)程序。
擴展-install-global-extension /path/to/extension
在程序目錄內安裝插件。參數是指插件的路徑。安裝必須有管理員權限。
-install-global-theme /path/to/theme
同上,但用于主題。安裝必須有管理員權限。
-safe-mode
安全模式,禁止所有插件。
區域設置-UILocale locale
啟動(dòng)區域資源用戶(hù)界面。
firefox -UILocale en-US
-contentLocale locale
Start with locale resources as content Locale.
firefox -contentLocale en-US其它-console
啟動(dòng)調試控制臺。
-h or -help or -?
打印所有的命令行參數列表。
-v or -version
打印程序版本。
-osint
告訴程序它是被操作系統啟動(dòng)的。
-requestPending
告訴程序將使用 Windows DDE 打開(kāi)網(wǎng)址。
更多信息請參考 Firefox 官方網(wǎng)站:https://developer.mozilla.org/en/Command_Line_Options
聯(lián)系客服