Contentaccesible和Chrome.Manifest [英] Contentaccesible and Chrome.Manifest

查看:195
本文介绍了Contentaccesible和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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆