[英]jQuery not loading in Google Chrome content_script extension
[英]Chrome extension manifest error: content_script[0].matches[0]
我相信这可能是问题所在:
"content_scripts" : [
{
"matches" : [
"http://195.88.55.16"
],
"js" : ["script.js"],
"run_at" : "document_idle",
"all_frames" : false
}
您需要在“ matches
部分中将斜杠(可能是斜杠+星号)添加到主机,以使模式有效。
"matches" : [
"http://195.88.55.16/*"
],
有关更多信息,请参见匹配模式文档:
基本语法如下:
<url-pattern> := <scheme>://<host><path> <scheme> := '*' | 'http' | 'https' | 'file' | 'ftp' | 'chrome-extension' <host> := '*' | '*.' <any char except '/' and '*'>+ <path> := '/' <any chars>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.