Chrome中是否存在命令行参数,以便在启动时启动开发人员工具? [英] Is there a command line argument in Chrome to start the developer tools on startup?

查看:339
本文介绍了Chrome中是否存在命令行参数,以便在启动时启动开发人员工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome中是否有命令行参数,可以在启动时启动开发人员工具,而不必每次按Ctrl + Shift + J? 我没有找到通过命令行的方式,但这里是我使用的解决方法,你可能会发现它也很有用
首先它只能在Windows上工作,尽管我怀疑类似的东西也可以在Mac和Linux上完成。



我使用Windows Scripting Host来发送密钥,就好像它们是从应用程序中预先设置的一样。
File keys.wsf

 < package> 
< job id =js>
< script language =JScript>
var shl = WScript.CreateObject(WScript.Shell);
var WINTITLE =Chrome
shl.AppActivate(WINTITLE);
WScript.sleep(500);
shl.SendKeys(^ + i);
< / script>
< / job>
< / package>

如果您知道您的Crome窗口标题可能有助于替换WINTITLE


Is there a command line argument in Chrome to start the developer tools on startup without haveing to press Ctrl+Shift+J every time?

解决方案

I did not find the way to do it via command line, but here is the workaround that I use, you might find it useful as well First it only works on Windows, though I suspect similar things might be done on Mac and Linux as well.

I use Windows Scripting Host, to send key as if they were preseed from within the app. File keys.wsf

<package>
<job id="js">
  <script language="JScript">
     var shl = WScript.CreateObject("WScript.Shell");
     var WINTITLE= "Chrome"
     shl.AppActivate(WINTITLE);
     WScript.sleep(500);
     shl.SendKeys ("^+i");
  </script>
  </job>
</package>

If you know that your Crome window title is might help to replace WINTITLE

这篇关于Chrome中是否存在命令行参数,以便在启动时启动开发人员工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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