首页>文档>教程文档>若手矩阵侠>浏览器启动参数大全

此组别内的文章

  • 浏览器启动参数大全

需要支持?

如果通过文档没办法解决您的问题,请提交工单获取我们的支持!

浏览器启动参数大全

分类参数用途用法示例说明
基础参数–disable-extensions-except启用指定插件–disable-extensions-except=D:/Default/Extensions/padekgcemlokbadohgkifijom/2.5.21_01.–参数=插件路径(多个插件用,隔开)
2.通常这两个参数一起使用
–load-extension–load-extension=D:/Default/Extensions/padekgcemlokbadohgkifijom/2.5.21_0
–headless无界面模式运行–headless已集成至软件,无需附加,到软件中设置
–user-agent设置用户代理–user-agent=”Mozilla/5.0…”–参数=UA
–user-data-dir指定用户数据目录–user-data-dir=”C:\ChromeData”已集成至软件,无需附加
–参数=路径
–incognito以隐身模式启动–incognito无需参数值
–app以应用模式启动指定URL–app=”https://example.com”–参数=url
–app-id以指定ID启动扩展应用–app-id=app_id–参数=插件ID
–lang设置浏览器语言–lang=zh-CN–参数=语言
–homepage设置首页–homepage=”https://example.com”–参数=url
–window-size设置窗口大小–window-size=1280,720–参数=宽,高
–window-position设置窗口位置–window-position=100,100–参数=坐标
–start-maximized最大化启动窗口–start-maximized无需参数值
–bwsi以访客模式启动–bwsi无需参数值
–kiosk启动全屏展示模式–kiosk无需参数值
–version显示版本信息并退出–version无需参数值
–first-run强制显示首次运行体验–first-run无需参数值
–browser-startup-dialog启动时显示对话框–browser-startup-dialog无需参数值
–class设置窗口类名–class=”Chrome”–参数=名称
网络相关–proxy-server设置代理服务器–proxy-server=”socks5://127.0.0.1:1080″–参数=”协议://地址:端口”
–proxy-bypass-list设置代理绕过列表–proxy-bypass-list=”.example.com,192.168.1.1″–参数=”域名,ip”
–host-resolver-rules设置主机解析规则–host-resolver-rules=”MAP 127.0.0.1″–参数=”域名,ip”
–no-proxy-server不使用代理–no-proxy-server无需参数值
–disable-http2禁用HTTP/2协议–disable-http2无需参数值
–disable-quic禁用QUIC协议–disable-quic无需参数值
–simulate-outdated-no-au模拟更新失效–simulate-outdated-no-au=”31/12/2099″–参数=”值”
–accept-lang设置请求头Accept-Language–accept-lang=zh-CN–参数=语言
–disable-client-side-phishing-detection禁用客户端钓鱼检测–disable-client-side-phishing-detection无需参数值
性能与资源–disable-gpu禁用GPU硬件加速–disable-gpu无需参数值
–disable-extensions禁用所有扩展–disable-extensions无需参数值
–disable-background-networking禁用后台网络活动–disable-background-networking无需参数值
–js-flags传递给V8 JavaScript引擎的标志–js-flags=”–max_old_space_size=4096″–参数=”值”
–disable-background-timer-throttling禁用后台标签页的计时器节流–disable-background-timer-throttling无需参数值
–disable-backgrounding-occluded-windows禁用被遮挡窗口的后台处理–disable-backgrounding-occluded-windows无需参数值
–memory-model设置内存使用模型–memory-model=low–参数=值
–disk-cache-size设置磁盘缓存大小(字节)–disk-cache-size=0–参数=值
–media-cache-size设置媒体缓存大小(字节)–media-cache-size=0–参数=值
–aggressive-cache-discard积极丢弃缓存–aggressive-cache-discard无需参数值
–process-per-site每个站点使用一个进程–process-per-site无需参数值
–process-per-tab每个标签页使用一个进程–process-per-tab无需参数值
–single-process在单进程中运行–single-process无需参数值
安全相关–no-sandbox禁用沙箱–no-sandbox无需参数值
–disable-web-security禁用网页安全策略–disable-web-security无需参数值
–allow-running-insecure-content允许在HTTPS页面中加载HTTP内容–allow-running-insecure-content无需参数值
–ignore-certificate-errors忽略SSL证书错误–ignore-certificate-errors无需参数值
–allow-insecure-localhost允许对localhost的不安全连接–allow-insecure-localhost无需参数值
–disable-site-isolation-trials禁用站点隔离试验–disable-site-isolation-trials–参数=值
–disable-features=IsolateOrigins禁用源隔离–disable-features=IsolateOrigins–参数=值
–unsafely-treat-insecure-origin-as-secure将不安全源视为安全源–unsafely-treat-insecure-origin-as-secure=http://example.com–参数=值
–cipher-suite-blacklist禁用指定的密码套件–cipher-suite-blacklist=0x0004,0x0005–参数=值
开发者工具–remote-debugging-port启用远程调试并指定端口–remote-debugging-port=9222–参数=端口
–auto-open-devtools-for-tabs为每个标签页自动打开开发者工具–auto-open-devtools-for-tabs无需参数值
–disable-dev-shm-usage禁用/dev/shm使用–disable-dev-shm-usage无需参数值
–enable-logging启用日志记录–enable-logging=stderr–参数=值
–log-level设置日志级别–log-level=0–参数=值
–vmodule设置模块日志级别–vmodule=/webrtc/=2,/media/=3–参数=值
–trace-startup记录启动跟踪事件–trace-startup无需参数值
–trace-to-file将跟踪事件写入文件–trace-to-file=trace.json–参数=值
–trace-to-console将跟踪事件输出到控制台–trace-to-console无需参数值
–blink-settings设置Blink引擎参数–blink-settings=preferredColorScheme=dark–参数=值
媒体相关–autoplay-policy设置自动播放策略–autoplay-policy=user-gesture-required–参数=值
–mute-audio静音所有音频–mute-audio无需参数值
–disable-speech-api禁用语音API–disable-speech-api无需参数值
–use-fake-ui-for-media-stream为媒体流使用假UI–use-fake-ui-for-media-stream无需参数值
–use-fake-device-for-media-stream为媒体流使用假设备–use-fake-device-for-media-stream无需参数值
–alsa-output-device设置ALSA输出设备–alsa-output-device=”default”–参数=值
–alsa-input-device设置ALSA输入设备–alsa-input-device=”default”–参数=值
–audio-buffer-size设置音频缓冲区大小–audio-buffer-size=512–参数=值
功能开关–enable-features启用特定功能–enable-features=DarkMode,ForceDarkMode–参数=值
–disable-features禁用特定功能–disable-features=PrivacySandboxSettings–参数=值
–disable-popup-blocking禁用弹窗拦截–disable-popup-blocking无需参数值
–disable-notifications禁用通知–disable-notifications无需参数值
–disable-infobars禁用信息栏–disable-infobars无需参数值
–disable-component-update禁用组件更新–disable-component-update无需参数值
–disable-default-apps禁用默认应用–disable-default-apps无需参数值
–disable-first-run-ui禁用首次运行UI–disable-first-run-ui无需参数值
–disable-translate禁用翻译功能–disable-translate无需参数值
–enable-automation启用自动化模式–enable-automation无需参数值
测试调试–dump-dom输出页面DOM–dump-dom无需参数值
–run-all-compositor-stages-before-draw绘制前运行所有合成器阶段–run-all-compositor-stages-before-draw无需参数值
–test-type指定测试类型–test-type=browser无需参数值
–disable-breakpad禁用崩溃报告–disable-breakpad无需参数值
–disable-crash-reporter禁用崩溃报告器–disable-crash-reporter无需参数值
–disable-logging禁用日志–disable-logging无需参数值
–print-to-pdf打印到PDF文件–print-to-pdf=”output.pdf”–参数=”路径”
–screenshot截图–screenshot=”screenshot.png”–参数=”路径”
–virtual-time-budget设置虚拟时间预算–virtual-time-budget=5000–参数=值
特殊功能–password-store设置密码存储方式–password-store=basic–参数=值
–force-device-scale-factor强制设备比例因子–force-device-scale-factor=1.5–参数=值
–force-color-profile强制颜色配置文件–force-color-profile=srgb–参数=值
–disable-webgl禁用WebGL–disable-webgl无需参数值
–enable-webgl启用WebGL–enable-webgl无需参数值
–ash-force-desktop强制桌面模式–ash-force-desktop=true–参数=值
–disable-accelerated-2d-canvas禁用加速2D画布–disable-accelerated-2d-canvas无需参数值
–disable-accelerated-video-decode禁用加速视频解码–disable-accelerated-video-decode无需参数值
–disable-office-editing-component-extension禁用Office编辑组件–disable-office-editing-component-extension无需参数值
Chrome OS特定参数–ash-debug-shortcuts启用Ash调试快捷键–ash-debug-shortcuts无需参数值
–ash-dev-shortcuts启用Ash开发快捷键–ash-dev-shortcuts无需参数值
–arc-availability设置ARC支持状态–arc-availability=installed–参数=值
–ash-host-window-bounds设置Ash主窗口边界–ash-host-window-bounds=”1024×768″–参数=值
–enable-arc-oobe-optin启用ARC OOBE选择加入–enable-arc-oobe-optin无需参数值
–arc-scale设置ARC应用的缩放–arc-scale=280–参数=值
–system-developer-mode在Linux环境中指定系统运行在开发模式–system-developer-mode无需参数值
购物车
优惠劵
搜索