mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
refactor: remove background script and update permissions
This commit is contained in:
@@ -4,18 +4,21 @@
|
|||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"description": "Highlight text on web pages",
|
"description": "Highlight text on web pages",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"permissions": ["storage", "scripting", "activeTab"],
|
"permissions": [
|
||||||
|
"storage"
|
||||||
|
],
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup/popup.html",
|
"default_popup": "popup/popup.html",
|
||||||
"default_icon": "icons/icon128.png"
|
"default_icon": "icons/icon128.png"
|
||||||
},
|
},
|
||||||
"background": {
|
|
||||||
"service_worker": "background.js"
|
|
||||||
},
|
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": ["<all_urls>"],
|
"matches": [
|
||||||
"js": ["content.js"],
|
"<all_urls>"
|
||||||
|
],
|
||||||
|
"js": [
|
||||||
|
"content.js"
|
||||||
|
],
|
||||||
"run_at": "document_idle"
|
"run_at": "document_idle"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -23,4 +26,4 @@
|
|||||||
"48": "icons/icon48.png",
|
"48": "icons/icon48.png",
|
||||||
"128": "icons/icon128.png"
|
"128": "icons/icon128.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user