[problem help] 如何使用终端命令设置chrome:flags
Tofloor
poster avatar
Cc
deepin
2023-09-01 19:34
Author

如何使用命令设置chrome:flags overscroll history navigarion 选项为disabled

Reply Favorite View the author
All Replies
dgmenghuan
deepin
2023-09-01 22:34
#1

tail

Reply View the author
来自Ubuntu的某位用户
deepin
2023-09-02 00:39
#2

你这是不是启动不了Chrome问的这个问题?

可以输入

chrome –no-experiments

禁用所有实验性功能并启动Chrome

也可以安装其他基于Chromium的浏览器

Reply View the author
hotime
deepin
2023-09-02 01:35
#3

chrome://flags配置中的数据保存在用户目录的一个json文件中:~/.config/google-chrome/'Local State'

你的需求实际上是需要操作json数据,这需要jq命令操作json数据。

jq '.browser.enabled_labs_experiments += ["overscroll-history-navigation@2"]' ~/.config/google-chrome/'Local State' > temp.json && mv temp.json ~/.config/google-chrome/'Local State'

执行这个命令,就可以在enabled_labs_experiments中添加 "overscroll-history-navigation@2"了(@2表示 Disable),并且不会覆盖原有已启用的实验性配置项。

Reply View the author