//In background.js chrome.tabs.onUpdated.addListener(function(tabid, info, tab) { console.log(info); });
I am trying to configure it, so onUpdate is launched once every time a YouTube video page is uploaded. I want to wait for the download after uploading the video to YouTube. When I boot directly from the URL, I get what I expect, but when I go to the suggested video, there are 2 load / end cycles. One for the current video, one for the next video.

This is the output for videos with a direct URL.

This is what happens if I go to a YouTube video while watching another YouTube video.
In my manifest, I have a simple background.js script, permission for webNaviagtion and Tabs.
I do not know why it works twice.
source share