Adds search + A–Z sorting + larger popup to the "Save to playlist" dialog. Lets you quickly filter your playlists, and keeps the popup usable without closing on input click. Rewritten in vanilla JS (no jQuery) to work under YouTube's Trusted Types CSP.
UPDATE 2026-07-28: fixed popup height on first opening
UPDATE 2026-07-26: fixed for YouTube's Trusted Types + new popup layout
YouTube's new Trusted Types policy broke the bundled jQuery (innerHTML is now blocked), and the "Save to playlist" popup DOM was renamed again. Rewrote the script in dependency-free vanilla JS (no more jQuery, no innerHTML) and re-anchored the selectors on the playlist rows so it survives future layout changes. Also fixed the search box keeping its old term when reopening the popup.
You no longer need the "Trusted-Types Helper" userscript for this script. Update and hard-refresh YouTube (Ctrl+F5).
UPDATE 2025-10-25: Added @updateURL and @downloadURL so Tampermonkey can automatically notify users when a new version of the script is available.
UPDATE 2025-10-24: UPDATED TO Youtube 2025-10 layout!
I have 113 playlists in YouTube and I hate to scroll around to find the list I want to save a video into. Unfortunately this list is ordered by last usage date so it is not easy to find a playlist which was not used recently in a 4-5-lines-tall list.
When you press Save button on the video player page of YouTube (or at any subpage of Youtube where this same dialog is used, for example at Watch later -> Save to playlist) this script injects a search field into the save dialog. When you start typing only the playlists will be shown which contain the text you entered into the search field.