YouTube “Save to Playlist” Enhancer
This userscript adds a convenient hotkey p to YouTube, which opens the Save to Playlist dialog on the currently playing video. It also sorts and filters your playlists in a more useful way. Just the way it should have been fron the start.
Features
- Hotkey: p
- Press p (without Ctrl, Alt, or Meta) on any YouTube watch page to open the Save to Playlist dialog.
- Sorting
- Any playlists that the current video is already in will be shown at the top.
- All other playlists are displayed in alphabetical order (0-9,A–Z).
- Filter Input
- Just below the “Save video to…” text, the script adds an input box (in focus automatically).
- If empty: all playlists are shown (with already-added ones on top).
- If any text is typed: only those playlists whose name contains the typed letters are displayed.
- ESC Key
- Pressing Escape closes (exits) the Save to Playlist dialog.
How It Works
- Auto-Injection
- When the “Save to Playlist” dialog appears, the script automatically inserts a small input field right below the text “Save video to…”.
- Immediate Focus
- The script focuses that new input field so you can start typing to filter playlists immediately.
- Filtering
- As soon as you type text into the input, the list updates in real-time, showing only matching playlist titles.
- Sorting Only Once
- Each time the dialog is opened, the script sorts the list. It does not attempt to re-sort if you check/uncheck a playlist; however, closing and reopening the dialog will re-sort.
Installation
- Install a userscript manager such as Install Tampermonkey (https://www.tampermonkey.net) or Violentmonkey.
- Create a new script and copy/paste the code from this repository - or follow this link to install.
- Go to YouTube and verify you see the userscript log messages in the console (optional).
- Press p while watching any video to open the “Save to Playlist” dialog!