RemoveBgExtensionChrome/manifest.json

62 lines
1.4 KiB
JSON

{
"manifest_version": 3,
"version": "1.0",
"name": "APAC: Remove background trigger",
"background": {
"service_worker": "background.js",
"type": "module"
},
"web_accessible_resources": [
{
"resources": [
"contents/remove_bg.js",
"contents/image_editor.js"
],
"matches": [ "https://*/*" ]
}
],
"permissions": [
"tabs",
"notifications",
"scripting",
"activeTab",
"webNavigation",
"storage",
"windows",
"topSites"
],
"icons": {
"32": "icon/32.png",
"48": "icon/48.png",
"128": "icon/128.png"
},
"action": {
"default_icon": "icon/128.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [
"https://stage-editor.danielvu.com/*",
"http://localhost:8000/*",
"http://127.0.0.1:8000/*"
],
"js": [
"contents/image_editor.js"
],
"all_frames": true,
"run_at": "document_start"
},
{
"matches": [
"https://www.remove.bg/*"
],
"js": [
"contents/remove_bg.js"
],
"all_frames": true,
"run_at": "document_end"
}
]
}