Replies: 2 comments 1 reply
-
After double-checking (see https://developer.chrome.com/docs/extensions/reference/api/scripting), even with But in the case where you have |
Beta Was this translation helpful? Give feedback.
0 replies
-
I believe there's nothing stopping you from using an empty array. That, or you should use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now it doesn't seem possible to register a content script using
defineContentScript
with a property "registration" equal to "runtime" and with no property "matches".I believe it would make sense to be able to do that. If I understood correctly, when you have scripting permissions in your manifest, you don't need the host permission to inject the content script dynamically.
To throw in some code, here is what I would want to write :
Beta Was this translation helpful? Give feedback.
All reactions