I’m struggling to add the $nuxt.$router.afterEach function to the browser extension to detect route changes and run the function in the content script, as it appears it is only possible to access properties of $nuxt from an injected script, which would require messaging between the content and injected scripts. I couldn’t tell from your issue if you were working on it yet, so I didn’t want to invest too much time in case you were 😅

I’m trying, but with me not knowing much about extensions and the code being pretty weird at parts, it’s not that easy

View all comments