google-chrome - 从命令行启用 Chrome 标志
问题描述
我想在启动 chrome 时启用一个标志(启用令牌绑定)。我可以使用 chrome://flags 页面来做到这一点。但是对于运行测试,我需要从命令行进行。
我试过了
chrome --enable-features=令牌绑定
chrome --启用令牌绑定
他们都没有工作。
解决方案
- 去铬://版本
- 查找命令行参数:
命令行 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --enable-audio-service-sandbox --flag-switches-begin --enable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies --flag-switches-end --启用音频服务沙盒
使用所有参数运行上述命令,您的 chrome 实例将预设所有设置。
推荐阅读
- amazon - 通过亚马逊 ASIN 获取 EAN
- loops - awk 语法 '||' 没有'if' - 它是如何工作的,为什么它会循环?
- android - 如何在活动旋转时保存/恢复 MotionLayout 的状态
- c - 我的代码“忽略”多个正确的显示并选择它捕获的第一个
- c# - 使用回调调用本机代码时出现 System.EngineExecutionException
- symfony - 从 Symfony 中的动态 ID 获取服务
- mysql - 为什么我的 SQL 查询会产生不同的顺序?
- python - 将列表转换为字典,其中列表值为字典键和值
- node.js - 没有找到kurento utils?
- circleci - Sentry --rewrite 选项失败的命令