Skip to content

lewdev/youtube-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

youtube-thumbnail

Shortcut that will get the thumbnail of the YouTube video.

Setup

Two methods:

  • Highlight and drag this code onto your bookmarks bar
  • or create a bookmark and paste the code in the URL/location field.

Usage: When viewing a video on Youtube, just click on the shortcut.

📺 YT hqdefault.jpg

javascript:(_=>{var re = window.location.href.match(/v=([^\?&"'>]+)/i); if (re && re.length > 0) { var videoId = re[1]; window.open('https://i.ytimg.com/vi/'+videoId+'/hqdefault.jpg')}})()

📺 YT maxresdefault.webp

javascript:(_=>{var re = window.location.href.match(/v=([^\?&"'>]+)/i); if (re && re.length > 0) { var videoId = re[1]; window.open('https://i.ytimg.com/vi_webp/'+videoId+'/maxresdefault.webp')}})()

About

Shortcut that will get the thumbnail of the YouTube video.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors