如何从js获得Chrome命令行切换 [英] How to get Chrome command line switches from js

查看:526
本文介绍了如何从js获得Chrome命令行切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome中有很多命令行开关,例如: http:// peter .sh / experiments / chromium-command-line-switches /

是否有选项可以通过javascript来检查哪些已启用?

解决方案

不,没有。而且不应该有任何需要。如果某个标志添加了任何功能,则可以检查该功能是否存在。任何其他标志与网页完全无关。


There are many command line switches in Chrome, for example: http://peter.sh/experiments/chromium-command-line-switches/

Is there an option to check by javascript which of them are enabled?

解决方案

No, there is not. And there shouldn't be any need for it. If a flag adds any functionality, you can check if that functionality exists. Any other flag is completely irrelevant to a webpage.

这篇关于如何从js获得Chrome命令行切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆