Chrome 扩展程序清单错误:content_script[0].matches[0]
2012-11-17
210
我相信这可能是问题所在:
"content_scripts" : [
{
"matches" : [
"http://195.88.55.16"
],
"js" : ["script.js"],
"run_at" : "document_idle",
"all_frames" : false
}
1个回答
您需要在
matches
部分的主机后面附加一个斜线(可能是斜线 + 星号)以使模式有效。
"matches" : [
"http://195.88.55.16/*"
],
有关更多信息,请参阅 匹配模式 的文档:
Here's the basic syntax:
<url-pattern> := <scheme>://<host><path> <scheme> := '*' | 'http' | 'https' | 'file' | 'ftp' | 'chrome-extension' <host> := '*' | '*.' <any char except '/' and '*'>+ <path> := '/' <any chars>
Rob W
2012-11-17