Chrome中的主要文件是:
第一个是manifest.json,这其中的结构可以参见:
http://open.chrome.360.cn/html/dev_manifest.html
我写的是:
{
"name":"first chrome",
"version":"1.0",
"description": "Gets information from Google.",
"content_scripts":[ {
"all_frames":true,
"js": [ "jquery.js", "contentscript.js" ],
"matches":["http://*/*"]
}],
"browser_action": {
"default_icon": "icon.png"
}
}
然后我需要往每个html页面中注入js脚本,所以需要我的脚本文件,并将其配置在content_scripts中