I\'m writing a Chrome Extension in Javascript and I want to get the current time for the playing video on youtube.com. I tried using the answer from question Getting Current You
In 2020, it seems we should use: player.playerInfo.currentTime.
player.playerInfo.currentTime
full code on codepen