19. September 2015 · Comments Off on Create YouTube Playlist Links – No Login Required · Categories: AutoHotKey, Command-line Tools, Video, Windows · Tags: AutoHotKey, scripts
Last updated on 04/11/2020

YouTube playlists are a useful way to watch videos in sequence or for sharing a list of videos with others. However, at times it may be insecure to share playlists created from your personal account or inconvenient to log in into your account to create them. This guide describes how to create playlists in a single link that allows you to view your videos immediately, save them for later, or to share them with others – without logging into your YouTube account.

youtube filmstripA YouTube playlist can be created manually by concatenating the unique videoIDs, separated by commas, to the URL:

https://www.youtube.com/watch_videos?video_ids=

A completed playlist will thus look like so:

https://www.youtube.com/watch_videos?video_ids=video_id#1,video_id#2,etc

Just paste the completed link into your browser to start the playlist. A more complete explanation of this process can be found at this blog post: How to Create YouTube Playlists without Logging In.

Creating playlists manually can be inconvenient, so a way to accomplish this automatically with a script was sought. Because the Windows command-line doesn’t easily support the clipboard without 3rd part tools, AutoHotKey was used instead since it can manipulate the clipboard more easily. AutoHotKey version 1.1.32.00 was used for the script and tested on a system running WinXP.

AutoHotKey script: youtube_playlist2.ahk

To use the script, run it to monitor the clipboard for youtube.com/watch, youtube.com/embed/, or youtu.be; text which is used in normal, embedded, or shortened YouTube video links. The script generally ignores any other text, so in most cases, the script can be active and not interfere with normal clipboard activity.

After starting the script, a popup message appears in the system tray to alert the user that the script has started and informs the user that CNTL +Y will create the playlist link and copy it to the clipboard, CNTL + Z exits the script, and that CNTL + ALT + C clears the playlist and clipboard.


Each time a YouTube video link is copied to the clipboard, a Tray tip displays the link that was processed and how many video links in total were copied and processed. Hit OK to continue. Wait 2.5 seconds between selecting videos (when the Tray tip disappears) before selecting another video.

After selecting all your videos, use CNTL + Y to copy the final playlist to the clipboard. Another popup message (screenshot below) will appear. This popup indicates the total number of videos in the playlist, the final playlist link, how to exit the script, and reminds the user that the playlist link has been copied to the clipboard. The playlist link is ready to use by pasting it into a browser or in an email. After hitting OK you can continue adding videos or use CNTL + Z to exit, or CNTL + ALT + C to clear the playlist and clipboard. Other ways to clear everything and start over are to reload the script by right-clicking the script icon in the system tray and selecting “Reload This Script”, or just exit the script and restart.

youtube playlist

 

The script can be further customized by the user as desired.

Share
">Bear

Bad Behavior has blocked 2481 access attempts in the last 7 days.