Can i inject a content script UI at a specific time?

I want to inject some components into the host page using content script UI at a specific time, such as clicking the action icon, how can I control the timing of triggering the injection?
4 Replies
lab
lab13mo ago
My recommendation is to have a dormant CSUI preloaded into the page, and upon user's interaction, unhide the CSUI But if JIT injection is what you really need - you can use the manual script execution API
Jed
Jed13mo ago
thanks mate! I'm working on the solution you mentioned above, hoping it works well.🤝
YAGPDB.xyz
YAGPDB.xyz13mo ago
Gave +1 Rep to @louisgv
Dyvs
Dyvs13mo ago
Hi, did you achive that?, I'm trying to do the same, could you share me an example, please.