// Get video ID from the currently loaded video (which might be different than currently loaded page)function getVideoIDFromURL(ytPlayer){const idMatch = /(?:v=)([\w\-]+)/;let videoURL = ytPlayer.getVideoUrl();let id = idMatch.exec(videoURL)[1] || "ERROR: idMatch failed; youtube changed something";return id;}
Thanks for reporting. It looks like this occurs when searching, so it wouldn't actually affect functionality. But it should be fixed in the latest version now.
Small bug, otherwise working good:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unexpected_type