我在創建Chrome擴展時遇到了一些問題。代碼會影響Chrome中打開的所有頁面,我該如何解決?擴展會影響另一個網頁
我manifest.json的:
{
"manifest_version": 2,
"name": "Merch Tools 41studio",
"description": "report app",
"version": "1.0",
"background": {
"scripts": ["assets/js/jquery.min.js", "assets/js/background.js"]
},
"browser_action": {
"default_icon": "assets/image/icon.png",
"default_popup": "popup.html"
},
"permissions": ["tabs"],
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
"js": ["assets/js/jquery.min.js", "assets/js/highcharts.js"]
}]
}
不針對「所有網絡」 –
你能告訴我,如何做到這一點? –
你能告訴我你做了什麼嗎?具體清單 –