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

查看:100
本文介绍了我可以通过编程方式从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天全站免登陆