I'm creating a Chrome extension and for a small feature(optional) in my extension, I need to use ContentScript (I have a content.tsx file)
But as this content.tsx file requires lots of permissions and increases the review time by Google, I want to put it behind a button and use optional_host_permissions & optional_permissions to ask the user to grant the permission and then inject the content script to the DOM.(activate the feature)
I tried multiple ways already and still didn't succeed.
Is there any context that might help us understand?
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.
What is the example you wish to see?
I'm creating a Chrome extension and for a small feature(optional) in my extension, I need to use ContentScript (I have a
content.tsx
file) But as thiscontent.tsx
file requires lots of permissions and increases the review time by Google, I want to put it behind a button and useoptional_host_permissions
&optional_permissions
to ask the user to grant the permission and then inject the content script to the DOM.(activate the feature)I tried multiple ways already and still didn't succeed.
Is there any context that might help us understand?
No response
Code of Conduct