2013-04-05 100 views

回答

4

content_scripts清单属性是阵列,这样你就可以定义多个内容脚本规范对象:

"content_scripts": [ 
    { 
     "matches": ["http://www.google.com/*"], 
     "css": ["mystyles.css"], 
     "js": ["a.js"], 
     "all_frames": false 
    }, 

    { 
     "matches": ["http://www.yahoo.com/*"], 
     "js": ["b.js"], 
     "all_frames": true 
    } 
], 
+1

非常感谢您的快速反应,似乎有点愚蠢,我没有从通知开始! – zabetak 2013-04-08 12:41:59

相关问题