Contentaccesible and Chrome.Manifest

会有一股神秘感。 提交于 2019-12-25 04:26:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/21751559/contentaccesible-and-chrome-manifest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!