问题是小虎在用谷歌浏览器添加插件时添加不了,出现Failed to load extension。
在这里插入图片描述
The “background.scripts” key cannot be used with manifest_version 3. Use the “background.service_worker” key instead. Could not load manifes

在这里插入图片描述
修改manifest.json文件,将第22行代码去掉,将21行代码的逗号去掉,然后将scripts改为server_worker即可。
在这里插入图片描述