Contentaccesible和Chrome.Manifest [英] Contentaccesible and Chrome.Manifest
问题描述
这是我的chrome.manifest文件:
内容ghforkable ./
content_scripts ghforkable content_scripts / contentaccessible = yes
它似乎并不工作,但我一直得到这个安全错误:
安全错误:内容位于 https://github.com/ 可能无法加载或链接到
chrome://ghforkable/content/content_scripts/inject.js。
请帮忙解决方案
解决方案感谢来自mozillazine的litho和pat解决方案。可以有多个内容文件夹,其中一个被标记为内容可访问:
内容ghforkable ./
内容ghforkable -scripts content_scripts / contentaccessible = yes
脚本 chrome:// ghforkable- scripts / content / inject.js
可以被注入网页。
this is my chrome.manifest file:
content ghforkable ./
content_scripts ghforkable content_scripts/ contentaccessible=yes
It doesn't seem to work though, i keep getting this security error:
Security Error: Content at https://github.com/ may not load or link to chrome://ghforkable/content/content_scripts/inject.js.
please help
Solution thanks to litho and pat from mozillazine. There can be more than one content folder, with one being marked as contentaccessible:
content ghforkable ./
content ghforkable-scripts content_scripts/ contentaccessible=yes
The script chrome://ghforkable-scripts/content/inject.js
can then be injected into webpages.
这篇关于Contentaccesible和Chrome.Manifest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!