【发布时间】:2012-04-17 17:44:20
【问题描述】:
我想在带有 chrome-extension:// URL 的 iframe 上运行内容脚本。我在 manifest.json 中添加了一行,是从文档 http://code.google.com/chrome/extensions/match_patterns.html 中复制出来的
chrome-extension://*/*
但是当我重新加载我的扩展程序时,我会收到一条警报:
Could not load extension from '/work/sirius/extension'.
Invalid value for 'content_scripts[2].matches[0]': Invalid scheme.
知道如何让它工作吗?
【问题讨论】:
-
正如@Konstantin Smolyanin 在下面的回答中指出的那样,该文档现在没有提及将内容脚本注入
chrome-extension:页面的能力。