我的文件manifes.js看起来像这样
{
"manifest_version": 2,
"name": "Youtube test",
"description": "This extension lalala",
"version": "1.0",
"icons": {
"128" : "icon.png"
},
"content_scripts": [
{
"matches": ["http://youtube.com/*"],
"js": ["test.js"]
}
]
}
我的test.js尝试控制台测试它是否正常工作
<script type="text/javascript"></script>
window.onload=function(){console.log('work test');};
</script>
但是当我去youtube时它什么都没做?怎么了?