cd /news/developer-tools/userscript-to-update-youtube-s-save-… · home topics developer-tools article
[ARTICLE · art-9506] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Userscript to update Youtube's Save to Playlist with a hotkey, sorting and filtering of available playlists.

This userscript enhances YouTube's "Save to Playlist" dialog by adding a hotkey (the 'p' key) to open it and by sorting playlists so that those already containing the current video appear at the top. It also introduces a real-time filter input field that allows users to type text to narrow down the list of displayed playlists. The script is designed for users with a userscript manager like Tampermonkey or Violentmonkey.

read2 min views21 publishedJan 1, 2025

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!

── more in #developer-tools 4 stories · sorted by recency
── more on @youtube 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/userscript-to-update…] indexed:0 read:2min 2025-01-01 ·