我正在开发一个与 Aviary API 配合使用的 Chrome 扩展程序。我需要将 Aviary Javascript 添加到扩展中。我的 list 如下所示:
"content_scripts": [ {
"js": ["http://feather.aviary.com/js/feather.js", "jquery-1.7.2.min.js", "chosen/chosen.jquery.js", "main.js" ],
"css": [ "assets/css/style.css" ],
}],
"permissions": [
"http://feather.aviary.com*",
"tabs",
"cookies"
]
但它不断抛出错误“无法加载内容脚本的 javascript 'http://feather.aviary.com/js/feather.js'”。 。我做错了什么吗?我一直在寻找但没有找到解决方案。
最佳答案
您应该设置权限示例
"permissions": [
"http://*feather.aviary.com*", "webRequest",
"tabs"
]
关于javascript - Chrome 扩展程序无法通过 list 加载外部 JavaScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12275998/