em Hacking

Usando o Firefox na linha de comando

Neste post você aprenderá como utilizar o Mozilla Firefox através da linha de comando. Criei este post apenas como curiosidade e caso alguém precise futuramente que faça bom proveito.

Mac OS X

Abra o terminal encontre a pasta do binário do Firefox em /Applications/Firefox.app/Contents/MacOS/firefox e entre com o seguinte comando

/Applications/Firefox.app/Contents/MacOS/firefox -ProfileManager

Veja abaixo a lista de comandos possíveis e suas respectivas flags

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”