How to run content script without page refresh after extension install? #899
Unanswered
Abhinav-birdeye
asked this question in
Q&A
Replies: 1 comment
-
Try content scripts - they work right after installation - you need to refresh the page using something like If you really need to execute a script onInstsall from a service_worker try "dynamic content scripts" from the jacks medium article |
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
-
Hey everyone,
I'm grateful for this project, it makes building extensions a breeze.
The problem
I have a content script (UI) defined in the manifest (index.tsx). When the extension is installed, I want the content script to run automatically without needing a page refresh. How can this be done?
What has been tried
If the answer is to register or execute content script from the background worker, I haven't been able to do that. Just a slew of bugs, and ambiguity on the way to import the TSX file.
I am just a beginner here, trying to figure things out. Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions