Replies: 1 comment
-
I assume you're talking about Firefox. You could request I don't know if that will prompt the user to allow the content script or not, unfortunately I bet it won't. But that's the only suggestion I have. The user might still have to enable each website manually on the extension settings page anyways... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is not WXT related, but I think it's worth asking this question as it may be helpful to the other ext. developers (if possible at all).
My extension currently requires access to all sites and it bothers many users. But it's justified from my side, because the extension can work anywhere and content_script injection matches both
http://*/*
andhttps://*/*
protocols - so access to all websites.I was wondering, would it be possible to declare popup in a manifest, but then use the same browser action to toggle whether the popup will show up (if it has access to that site) or it will prompt browser to request access to that domain, before it can work.
So if user approves, it would then add that domain to the Site access list and they can toggle it later (on/off) from the browser's interface.
Not sure if that's possible, or I would need to declare
optional_host_permissions
for this? If so, that'd be impossible, because there are many video streaming platforms world-wide, so myoptional_host_permisions
would be huuuuge.Please let me know, fellow extension developers. I do not have much knowledge in this area of permission requests.
Beta Was this translation helpful? Give feedback.
All reactions