Command_line_arguments

CommandResultExample
-profile "<path>"Starts with profile located at the given path.
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -profile "E:\myprofile"
-P "<profile name>"Starts with a given profile name (profile name is case sensitive).firefox.exe -P "Joel User"
<url>Launches the application and opens the given URL(s).firefox.exe "www.mozilla.org" "www.mozillazine.org"
-safe-modeLaunches the application with extensions disabled and the default theme.
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -safe-mode
-no-remoteEnables running multiple instances of the application with different profiles[1] used with -P
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox.exe -no-remote
-height <value>Sets height of the startup window to <value>.firefox.exe -height 600
-width <value>Sets width of the startup window to <value>.firefox.exe -width 800
-ProfileManagerStarts with Profile Manager.firefox.exe -ProfileManager
-CreateProfileCreate a new profilefirefox -CreateProfile test
-migrationStarts the application with the Import Wizard
Does not apply to Mozilla Suite/SeaMonkey 1.x
firefox -migration
-consoleStarts the application with a debugging console.firefox.exe -console
-jsconsoleStarts with the Error Console (Javascript Console).firefox.exe -jsconsole
-inspector <url>Starts with the DOM Inspector.firefox.exe -inspector http://www.google.com/
-chrome <url>Loads the specified chrome.firefox.exe -chrome chrome://inspector/content/inspector.xul
-new-window <url>Loads a URL in a new browser window.firefox.exe -new-window <url>
-new-tab <url>Loads a URL in a new tab.firefox.exe -new-tab <url>
-install-global-extension "<path>"Installs an extension globally.firefox.exe -install-global-extension "C:\Temp\extension-file.xpi"
-purgecachesPurges the caches for internal JavaScript and extensions.
Applies since Firefox 4
firefox.exe -purgecaches

版权声明:本文为u011923323原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。