简体   繁体   English

为chrome开发人员工具添加功能

[英]adding functionality to chrome developer tools

I'd like to add functionality to chrome's developer tools. 我想为chrome的开发人员工具添加功能。 In particular it would be nice to have a most used files option to the list of scripts I'm looking at. 特别是在我正在查看的脚本列表中使用最常用的文件选项会很不错。 Also would be nice to hide some scripts from my list that im not currently interested in. 也很高兴隐藏我目前不感兴趣的列表中的一些脚本。

Any guidance on where to start would be appreciated ? 任何关于从哪里开始的指导将不胜感激? eg is this something possible with an addon or is it core chrome functionality ie is this a patch to the chrome source ? 例如,这是可能的插件或核心铬功能,即这是铬源的补丁?

样本功能的想法

Chrome doesn't currently allow messing with the developer tools. Chrome目前不允许搞乱开发人员工具。 There is an experimental chrome.experimental.devtools API however that allows you to add your own pages to the devtools. 有一个实验性的chrome.experimental.devtools API,但是它允许您将自己的页面添加到devtools。 Experimental APIs needs to be enabled on chrome://flags , otherwise extensions using them won't install. 需要在chrome://flags上启用实验API,否则将无法安装使用它们的扩展。 And of course you cannot upload such extensions to the Chrome Web Store. 当然,您无法将此类扩展程序上传到Chrome网上应用店。 If that's ok for you then you can try to implement something. 如果你没问题那么你可以尝试实现一些东西。 Eventually these APIs will be marked as stable but I have no idea when this will be. 最终这些API将被标记为稳定,但我不知道何时会这样。

There is a small guide about extending Chrome DevTools. 有关扩展Chrome DevTools的小指南。 http://smus.com/extending-chrome-developer-tools http://smus.com/extending-chrome-developer-tools

The guide about hacking the DevTools is here http://code.google.com/chrome/devtools/docs/contributing.html 有关黑客攻击DevTools的指南,请访问http://code.google.com/chrome/devtools/docs/contributing.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM