我可以通过 Google Chrome 扩展程序以编程方式打开 devtools 吗? [英] Can I programmatically open the devtools from a Google Chrome extension?

查看:37
本文介绍了我可以通过 Google Chrome 扩展程序以编程方式打开 devtools 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 chrome 扩展程序,它可以连接到 devtools.理想情况下,我想要一个徽章,单击时会在我创建的新选项卡上打开 devtools.有没有办法从后台页面做到这一点?

I have a chrome extension which hooks into the devtools. Ideally I want a badge that, when clicked, opens up the devtools on the new tab which I created. Is there any way to do this from the background page?

推荐答案

这似乎不太可能或永远不可能,

It seems unlikely that this is possible or will ever become possible,

检查一下:https://code.google.com/p/chromium/issues/detail?id=112277

其中说:我们只允许显式的 devtools 打开."

which says: "We only allow explicit devtools opening."

这篇关于我可以通过 Google Chrome 扩展程序以编程方式打开 devtools 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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