The vite config outputs 'hls.js' but manifest.json and viewer.js both referenced 'hls.min.js', causing chrome.runtime.getURL() to return a 404 — triggering 'HLS player unavailable'. - Update web_accessible_resources entry in manifest.json - Update loadHlsJs() chrome.runtime.getURL reference - Add debug log of manifest URL being loaded for diagnostics
47 lines
914 B
JSON
47 lines
914 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Goon Plugin",
|
|
"version": "0.1.0",
|
|
"description": "A Chrome extension",
|
|
"permissions": [
|
|
"storage",
|
|
"tabs",
|
|
"scripting",
|
|
"webRequest"
|
|
],
|
|
"host_permissions": [
|
|
"<all_urls>"
|
|
],
|
|
"background": {
|
|
"service_worker": "background.js",
|
|
"type": "module"
|
|
},
|
|
"action": {
|
|
"default_popup": "viewer/index.html",
|
|
"default_icon": {
|
|
"16": "icons/icon16.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["<all_urls>"],
|
|
"js": ["content.js"],
|
|
"run_at": "document_start",
|
|
"all_frames": true
|
|
}
|
|
],
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": ["interceptors.js", "hls.js"],
|
|
"matches": ["<all_urls>"]
|
|
}
|
|
],
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
}
|