我正在开发一个小的chrome扩展程序,需要在某些子页面上具有整体内容脚本和一些详细的版本。我有两个现成的脚本,但总体上不能在detailes子页面上运行:/
http://example.org/* - overall works, special is offline
http://example.org/otherpage* - overall works, special is offline
http://example.org/special* - overall doesn't works (why?), special works
"content_scripts": [
{
"matches": [ "http://example.org/*" ],
"js": [ "overall.js", "jquery-3.3.1.min.js" ]
},
{
"matches": [ "http://example.org/special*" ],
"js": [ "special.js", "jquery-3.3.1.min.js" ],
}
]
我尝试这样开始,但没有帮助
"content_scripts": [
{
"matches": [ "http://example.org/special*" ],
"js": [ "overall.js","overall.js", "jquery-3.3.1.min.js" ]
},