https://snipboard.io/F0c2S7.jpg , i have 2 file js files , one for the popup and one for the content_script . Please help
The script file running in the popup page would add the event listener and then use tabs.sendMessage
to tell the value to the content script.
thank you but i found an alternative without making popup … I added it directly to the page. But if you can tell me how to change the matches which would check if i am watching someones stream on twitch .
Like I want the match to be something like https://twitch.tv/username
only instead of https://twitch.tv/*
. I want to omit the homepage coz its causing an issue requring me to refresh
Instead of trying to change manifest.json, you could have your content script check the URL before modifying anything.