Add cross-browser popup status handling
This commit is contained in:
parent
9c65a61ebb
commit
7e17470356
38 changed files with 1242 additions and 199 deletions
|
|
@ -3,10 +3,19 @@
|
|||
"name": "VibeGuard",
|
||||
"version": "0.1.0",
|
||||
"description": "Hide toxic social-media posts locally.",
|
||||
"icons": {
|
||||
"16": "icons/logo16.png",
|
||||
"32": "icons/logo32.png",
|
||||
"48": "icons/logo48.png",
|
||||
"64": "icons/logo64.png",
|
||||
"96": "icons/logo96.png",
|
||||
"128": "icons/logo128.png"
|
||||
},
|
||||
"permissions": ["storage", "tabs", "offscreen"],
|
||||
"host_permissions": ["https://*.reddit.com/*", "https://*.x.com/*", "https://*.twitter.com/*", "https://*.facebook.com/*"],
|
||||
"host_permissions": ["<all_urls>"],
|
||||
"background": { "service_worker": "background.js", "type": "module" },
|
||||
"content_scripts": [{ "matches": ["https://*.reddit.com/*", "https://*.x.com/*", "https://*.twitter.com/*", "https://*.facebook.com/*"], "js": ["content.js"], "run_at": "document_idle" }],
|
||||
"content_scripts": [{ "matches": ["<all_urls>"], "js": ["content.js"], "run_at": "document_idle" }],
|
||||
"action": { "default_icon": "icons/logo32.png", "default_popup": "popup.html" },
|
||||
"options_page": "options.html",
|
||||
"web_accessible_resources": [{ "resources": ["inference.js", "models/*"], "matches": ["<all_urls>"] }]
|
||||
"web_accessible_resources": [{ "resources": ["inference.js", "models/toxicity/*", "models/toxicity/onnx/*"], "matches": ["<all_urls>"] }]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue