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?
5 Replies
lab
lab3y 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_Shiro
Jed_ShiroOP3y ago
thanks mate! I'm working on the solution you mentioned above, hoping it works well.🤝
YAGPDB.xyz
YAGPDB.xyz3y ago
Gave +1 Rep to @louisgv
D10s
D10s3y ago
Hi, did you achive that?, I'm trying to do the same, could you share me an example, please.
Diegood
Diegood16mo ago
how come there are no examples of this ?

Did you find this page helpful?