Google Chrome有用的命令行参数



--user-agent="xxxxxxxx"
修改HTTP请求头部的Agent字符串,可以通过about:version页面查看修改效果


--user-data-dir="dir"
修改临时文件存放的位置
在这里下载windows的nightly build,直接解压到一个目录就可以用了
http://build.chromium.org/buildbot/snapshots/chromium-rel-xp

临时文件夹的位置可以用--User-data-dir=xxx命令行参数修改。比如建一个chrome.exe的快捷方式,在后面加上“ --User-data-dir=D:\chrome-r16237”就可以了(我解压到了D:\chrome-r16237)。


--omnibox-popup-count="num"
将地址栏弹出的提示菜单数量改为num个。我都改为15个了。


--disable-plugins
禁止加载所有插件,可以增加速度。可以通过about:plugins页面查看效果


--disable-javascript
如果觉得速度慢在加上这个


下面还有一堆,都还没有研究过
allow-all-activex
always-enable-dev-tools
app
assert-test
automation-channel
channel
crash-test
debug-children
debug-print
disable-dev-tools
disable-hang-monitor
disable-images
disable-java
disable-javascript
disable-logging
disable-metrics
disable-metrics-reporting
disable-plugins
disable-popup-blocking
disable-prompt-on-repost
dns-log-details
dns-prefetch-disable
dom-automation
dump-histograms-on-exit
enable-file-cookies
enable-logging
enable-p13n
enable-watchdog
first-run
gears-in-renderer
gears-plugin-path
geoid
hide-icons
homepage
import
in-process-plugins
javascript-debugger-path
js-flags
lang
log-filter-prefix
log-level
make-default-browser
memory-model
memory-profile
message-loop-histogrammer
message-loop-strategy
new-http
no-events
no-sandbox
omnibox-popup-count
playback-mode
plugin
plugin-launcher
plugin-path
plugin-startup-dialog
process-per-site
process-per-tab
proxy-server
record-mode
remote-shell-port
renderer
renderer-assert-test
renderer-crash-test
renderer-path
renderer-startup-dialog
restore-last-session
safe-plugins
show-icons
silent-dump-on-dcheck
single-process
start-maximized
start-renderers-manually
tab-count-to-load-on-session-restore
test-sandbox
testing-channel
testshell-startup-dialog
trusted-plugins
uninstall
upload-file
use-lf-heap
user-data-dir
wait-for-debugger-children

你可能感兴趣的:(JavaScript,windows,chrome,Google,XP)