/alfred-youtube-thumbnail-link

Alfred workflow to get the YouTube thumbnail link from a url in your clipboard

Primary LanguageJavaScriptMIT LicenseMIT

alfred-youtube-thumbnail-link

Alfred workflow to generate the YouTube short link from a url in your clipboard

Get the link to a Youtube video Thumbnail form a video link in your clipboard and copy it to your clipboard.

Install

npm install --global alfred-youtube-thumbnail-link

Requires Node.js 14+ and the Alfred Powerpack.

Usage

  1. Open Alfred
  2. Either enter ytt for clipboard shortening
  3. Or provide the url via ytt https://youtube.com/watch?v=askdf214s
  4. Hit Enter to copy the copy the YouTube thumbnail link to your clipboard

Related

Improvement Ideas

Actually check if the thumbnail exists

Use the YouTube API or similar to check if the thumbnail actually exists and provide the one which has the highest resolution (or multiple resolutions to choose from).

Download & Copy image file to Clipboard

This would need some extra implementation to download and copy the image file. Maybe by storing it in a tmp folder? Not sure yet.