jonasdk
PD🧩 Plasmo Developers
•Created by jonasdk on 5/30/2023 in #🔰newbie
How to re-render content script on URL change (youtube)
I'm building a Plasmo extension for YouTube - youtube updates their pages dynamically, so the content script is not being re-run when page content is changed. So for example, I want to re-run a Plasmo CSUI each time the user goes to a different video.
I imagine I'd have to detect change in the DOM tree somehow, and then trigger my content script to re-run. However, my question is, how would I go about triggering a content script to rerun in Plasmo?
5 replies