我在尝试使用 Manifest v3 编写的非常基本的 chrome 扩展时遇到了一些问题
扩展程序本身运行良好,但是,每当我访问www.google.com或在 chrome 导航栏中输入搜索查询时,我的整个浏览器都会关闭/崩溃......
如果我输入一个预填充的 URL,即 facebook 或 youtube,它就可以正常工作。
编写的唯一 JS 代码在popup.js和content.js文件中。所有这些我都已经注释掉以测试它不是导致崩溃的一些错误代码......唉,它没有解决问题。
清单 V3
{
"name": "Prototype",
"description": "A Chrome extension to expedite daily tasks",
"version": "1.0",
"manifest_version": 3,
"permissions": [
"storage",
"activeTab",
"tabs",
"scripting",
"webNavigation",
"webRequest"
],
"action": {
"default_popup": "popup.html",
"default_icon": {
"19": "/images/one-cog-device-19px.png",
"38": "/images/one-cog-device-38px.png",
"48": "/images/one-cog-device-48px.png",
"128": "/images/one-cog-device-128px.png"
}
},
"content_scripts": [
{
"matches": ["https://protection.office.com/quarantine*"],
"css": ["content.css"],
"js": ["content.js"]
}
],
"icons": {
"19": "/images/one-cog-device-19px.png",
"38": "/images/one-cog-device-38px.png",
"48": "/images/one-cog-device-48px.png",
"128": "/images/one-cog-device-128px.png"
}
}
我已经用谷歌搜索了这个问题,但一无所获,任何想法都将不胜感激。