winter8 发表于 2013-2-7 16:44:21

content script

{"name": "gotoGoogle","version": "0.1","description": "go go the google page when you open baidu","permissions": [    "tabs"],   "content_scripts": [    {      "matches": ["http://*.baidu.com/*"],      "js": ["GoToGoogle.js"]    }]}
content_scipts就相当于是将“js"注入到与"matches"里的url相匹配的网页中去,可以通过developer tool解释
连接地址:http://code.google.com/chrome/extensions/content_scripts.html
页: [1]
查看完整版本: content script