PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.84k stars 314 forks source link

Q: Inject ContentScriptUI manually #1016

Open rezamajidi opened 1 week ago

rezamajidi commented 1 week ago

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 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