Javascript 我在某个URL上打印的简单chrome扩展不起作用
manifest.jsonJavascript 我在某个URL上打印的简单chrome扩展不起作用,javascript,google-chrome-extension,Javascript,Google Chrome Extension,manifest.json { "manifest_version": 2, "name": "Export HumbleBundle Library TEST", "version": "0.1.0", "icons": { }, "description": "Store information of all your unredeemed games from humblebundle.com in JSON file", "content_scripts":
{
"manifest_version": 2,
"name": "Export HumbleBundle Library TEST",
"version": "0.1.0",
"icons": {
},
"description": "Store information of all your unredeemed games from humblebundle.com in JSON file",
"content_scripts": [
{
"matches": ["*://humblebundle.com/home/keys"],
"js": ["main.js"]
}
]
}
main.js
console.log("jtara1 start");
我正在制作一个扩展,但它似乎已经停止加载我的脚本作为开发人员解包的扩展。当我访问时,控制台中没有打印任何内容
humblebundle.com
重定向到www.humblebundle.com
-未指定。编辑将值匹配到“*://*.humblebundle.com/*”
,它应该可以工作请验证“内容脚本”中的“匹配”,我认为URL模式是错误的
请别忘了重新加载您制作的“删除”分机
不确定为什么会这样,但它解决了我的问题。它曾一度作为“*://humblebundle.com/home/keys”
工作,我的其他chrome扩展也同样工作