This userscript creates a timelens for YouTube videos. You have to install a userscript manager like Greasemonkey or Tampermonkey in your browser.
The timelens concept was developed by @blinry. Check his presentation about timelens for details.
The thumbnails are generated by YouTube as part of the storyboard features that shows thumbnails when you hover over the progress bar.