content_scripts是否匹配“chrome-extension:// * / *”工作? [英] Does content_scripts matches "chrome-extension://*/*" work?
问题描述
我想使用chrome-extension:// URL在iframe上运行内容脚本。我在我的manifest.json中添加了一行,并将其从文档 http://代码中复制出来.google.com / chrome / extensions / match_patterns.html
chrome-extension:// * / *
但是,当我重新加载我的扩展程序时,我收到一个提醒:
无法从'/ work / sirius / extension'加载扩展名。
'content_scripts [2] .matches [0]'的值无效:方案无效。
任何想法如何让这个工作?
我遇到完全相同的问题,请查看API http://code.google.com/chrome/extensions/match_patterns.html 它清楚地表明它们接受 chrome-extension:// * / *
但他们不。
他们需要更新API以免混淆人。
I want to run a content script on an iframe with a chrome-extension:// URL. I added a line to my manifest.json that I copied out of the documentation http://code.google.com/chrome/extensions/match_patterns.html
chrome-extension://*/*
But when I reload my extension I get an alert:
Could not load extension from '/work/sirius/extension'.
Invalid value for 'content_scripts[2].matches[0]': Invalid scheme.
Any idea how to get this to worK?
I'm having the exact same problem, look at the API http://code.google.com/chrome/extensions/match_patterns.html it says clearly that they accept chrome-extension://*/*
yet they don't.
They need to update the API so as not to confuse people.
这篇关于content_scripts是否匹配“chrome-extension:// * / *”工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!