我看过google-chrome-extension实验室的页面,我没有看到任何可以在不同网站上使用不同内容脚本的例子。他们有一个页面,展示了如何在一个网站上拥有多个内容脚本,但不是相反。有没有办法让不同的网站有不同的内容脚本?
发布于 2011-06-09 11:15:09
{
"name": "My extension",
...
"content_scripts": [
{
"matches": ["http://www.google.com/*"],
"js": ["script1.js"]
},{
"matches": ["http://www.yahoo.com/*"],
"js": ["script2.js"]
}
],
...
}https://stackoverflow.com/questions/6287633
复制相似问题