I am trying to create a YouTube extension and in the console I get duplicate entries.
This makes debugging it more difficult as I have to constantly find in which entry all the console messages are going. I was wondering if there is any way to remove the entry when the extension is disabled or updated.
These are orphaned content script contexts created when reloading the extension and using executeScript to inject a new content script. Due to a bug in Chrome simply reloading the tab won't help.
The only way to remove them:
And a trick to simplify selecting the correct context: