Currently scripts potentially get executed every time tabs.onUpdated fires, this includes on-site navigations using the web History API - like e.g. done by SPAs - and so it duplicates the scripts. Change that to executing when onResponseStarted fires instead.
Currently scripts potentially get executed every time
tabs.onUpdated
fires, this includes on-site navigations using the web History API - like e.g. done by SPAs - and so it duplicates the scripts. Change that to executing whenonResponseStarted
fires instead.