Change chrome js injection method

This commit is contained in:
mynovelhost committed 2021-11-18 18:22:53 +01:00
1 parent eb1756cce9
commit 50028762fb
4 files changed
+173 -160

No files matched your search

+11 -3
View File
@@ -6,7 +6,6 @@
"background": {
"service_worker": "background.js"
},
"permissions": ["activeTab", "scripting"],
"host_permissions": ["*://*.youtube.com/*"],
"action": {
"default_popup": "popup.html"
@@ -19,7 +18,16 @@
{
"matches": ["*://*.youtube.com/*"],
"js": ["content-script.js"],
"run_at": "document_idle"
"run_at": "document_start"
}
],
"externally_connectable": {
"matches": ["*://*.youtube.com/*"]
},
"web_accessible_resources": [
{
"resources": ["script.js"],
"matches": ["*://*.youtube.com/*"]
}
]
}
}