阅读:17379回复:5
Firefox 主要的命令行参数
Ghacks 介绍了一些 Firefox 主要的命令行参数,这里说的命令行参数是指在 Firefox 快捷方式上右键点击属性中的,启动路径后面的参数:
![]() 和配置文件有关的参数:
和浏览器有关的参数:
其他一些参数:
https://www.ghacks.net/2017/10/08/the-most-important-firefox-command-line-options/ |
|
|
1楼#
发布于:2017-10-09 19:33
感谢了,一直以为-p这个参数已经失效了
|
|
2楼#
发布于:2017-10-09 16:18
Usage: firefox [ options ... ] [URL]
where options include: -h or --help Print this message. -v or --version Print Firefox version. -P <profile> Start with <profile>. --profile <path> Start with profile at <path>. --migration Start with migration wizard. --ProfileManager Start with ProfileManager. --no-remote Do not accept or send remote commands; implies --new-instance. --new-instance Open new instance, not a new window in running instance. --UILocale <locale> Start with <locale> resources as UI Locale. --safe-mode Disables extensions and themes for this session. --console Start Firefox with a debugging console. --headless Run without a GUI. --marionette Enable remote control server. --browser Open a browser window. --new-window <url> Open <url> in a new window. --new-tab <url> Open <url> in a new tab. --private-window <url> Open <url> in a new private window. --preferences Open Options dialog. --screenshot [<path>] Save screenshot to <path> or in working directory. --window-size width[,height] Width and optionally height of screenshot. --search <term> Search <term> with your default search engine. --jsconsole Open the Browser Console. --jsdebugger Open the Browser Toolbox. --wait-for-jsdebugger Spin event loop until JS debugger connects. Enables debugging (some) application startup code paths. Only has an effect when `--jsdebugger` is also supplied. --devtools Open DevTools on initial load. --start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on a TCP port or Unix domain socket path. Defaults to TCP port 6000. Use WebSocket protocol if ws: prefix is specified. --recording <file> Record drawing for a given URL. --recording-output <file> Specify destination file for a drawing recording. --setDefaultBrowser Set this app as the default browser. 常用的也就一两个。。 |
|
3楼#
发布于:2017-10-09 15:59
|
|
4楼#
发布于:2017-10-09 15:00
|
|
|
5楼#
发布于:2017-10-09 14:52
其实按照类unix系统的习惯,直接命令行下用firefox --help就把支持的选项全部列出来了。可惜windows非要默认关闭gui程序的命令行输出,导致windows下的命令行提示符和powershell之类的用这个都不会显示任何东西。还要找类似cygwin的终端那种第三方软件才能显示出来
另外给个MDN的链接作为补充 英文版 https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options 中文版(不及英文版新) https://developer.mozilla.org/zh-CN/docs/Mozilla/Command_Line_Options |
|