Munou Diagram 2

Let's munou!

Google Chrome/Chromium 的啟動參數

| Comments

本文是參考 Chromium Build 23135
不同版本也許會有些選項不能使用。

使用的方式:在 Chrome 捷徑裡的「目標」欄位填入
Chrome.exe –option-1 –option-2
例如
C:\xxx\chrome.exe –enable-udd-profiles –start-maximized
代表「使用多使用者設定檔模式」及「啟動時最大化」

常用的選項:

allow-all-activex預設讓各種附加元件可以使用
auto-spell-correct輸入文字時自動修正錯字
bookmark-menu在網址列的右側多加一個書籤按鈕
disable-audio不啟用背景音效音樂
disable-images不載入圖案
disable-java不啟用 JAVA
disable-javascript不啟用 JavaScript
disable-logging不啟用事件紀錄
disable-plugins不啟用任何附加元件
disable-popup-blocking不阻止彈出式視窗
disk-cache-dir=xxx手動設定硬碟快取的目錄
disk-cache-size=xxx限制硬碟快取大小
enable-udd-profiles啟用多使用者設定檔,可在瀏覽時按 Ctrl+M 管理使用者
enable-sync允許網路同步書籤
enable-user-scripts啟用使用者自訂 Scripts
memory-model=xxx記憶體模型,xxx 可為 high, medium, low
如果電腦有配備 1.5GB 以上記憶體,
使用 Chrome 切換分頁時卻常會讀取硬碟,
就可以使用 high 來解決這個問題。
根據 Chrome 原始碼,原理似乎不是配給記憶體,
而是很多 Chorme 的元件會依據你給予的 Memory Model,
決定是否要限制每個 Process 的 Working Set
no-default-browser-check不檢查預設瀏覽器是否為 Chrome
old-new-tab-page使用 2.0 時代的新頁籤預設版面
process-per-site每個網站使用一個 Process
process-per-tab每個網頁各使用一個 Process
user-scripts-dir=xxx如果有 –enable-user-scripts 這個啟動選項的話,
則會在開啟新網頁的時候,將指定目錄的 JavaScript 都執行一遍,
跟 Opera 的 User Scripts 功能類似。


全部的選項:

allow-all-activex
allow-sandbox-debugging
always-enable-dev-tools
app
assert-test
auto-spell-correct
automation-channel
bookmark-menu
browser-subprocess-path
country
crash-test
debug-print
diagnostics
disable-audio
disable-custom-jumplist
disable-dev-tools
disable-hang-monitor
disable-images
disable-java
disable-javascript
disable-logging
disable-metrics
disable-new-tab-first-run
disable-plugins
disable-popup-blocking
disable-prompt-on-repost
disable-web-security
disable-winsta
disk-cache-dir=xxx
disk-cache-size=xxx
dns-log-details
dns-prefetch-disable
dom-automation
dump-histograms-on-exit
enable-application-cache
enable-benchmarking
enable-databases
enable-extensions
enable-fastback
enable-file-cookies
enable-local-storage
enable-logging
enable-monitor-profile
enable-native-web-workers
enable-plugins
enable-remote-fonts
enable-renderer-accessibility
enable-sdch
enable-seccomp-sandbox
enable-session-storage
enable-stats-table
enable-sync
enable-tabtastic2
enable-udd-profiles
enable-user-scripts
enable-watchdog
enable-web-resources
enable-xss-auditor
extensions-update-frequency
file-descriptor-limit
first-run
force-fieldtest
gears-plugin-path
google-internal-crash-reporting
hide-icons
homepage
import
in-process-plugins
incognito
install-extension
js-flags
load-extension
load-plugin
log-filter-prefix
log-level
log-plugin-messages
make-default-browser
media-cache-size
memory-model=xxx
memory-profile
message-loop-histogrammer
metrics-recording-only
new-ftp
new-tab-page
no-default-browser-check
no-events
no-first-run
no-js-randomness
no-proxy-server
no-sandbox
old-new-tab-page
omnibox-popup-count
pack-extension
pack-extension-key
parent-profile
pinned-tab-count
playback-mode
plugin
plugin-data-dir
plugin-launcher
plugin-path
plugin-startup-dialog
print
privacy-blacklist
process-per-site
process-per-tab
proxy-auto-detect
proxy-bypass-list
proxy-pac-url
proxy-server
record-mode
remote-shell-port
renderer
renderer-assert-test
renderer-cmd-prefix
renderer-crash-dumping
renderer-crash-test
renderer-startup-dialog
restore-last-session
safe-plugins
search-in-omnibox-hint
show-icons
silent-dump-on-dcheck
simple-data-source
single-process
start-maximized
tab-count-to-load-on-session-restore
test-name
test-sandbox
testing-channel
thumbnail-store
trusted-plugins
try-chrome-again
uninstall
use-lf-heap
user-agent
user-data-dir
user-scripts-dir
utility
utility-cmd-prefix
wait-for-debugger-children
web-worker-process-per-core
web-worker-share-processes
winhttp-proxy-resolver
worker
zygote
zygote-cmd-prefix