gpt4 book ai didi

javascript - 我在某个 URL 打印的简单 chrome 扩展无法正常工作

转载 作者:行者123 更新时间:2023-12-03 02:45:59 26 4
gpt4 key购买 nike

list .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": [
{
"matches": ["*://humblebundle.com/home/keys"],
"js": ["main.js"]
}
]
}

main.js

console.log("jtara1 start");

我正在制作扩展,但它似乎已停止加载我的脚本作为开发人员解压的扩展。当我访问 https://humblebundle.com/home/keys 时,控制台中没有打印任何内容

download link for the two files listed above

最佳答案

humblebundle.com 重定向到 www.humblebundle.com - 这不是指定的 matched pattern 。将 matches 值编辑为 "*://*.humblebundle.com/*",它应该可以工作

关于javascript - 我在某个 URL 打印的简单 chrome 扩展无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48088981/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com