Youtube Save To Playlist Hotkey And Filter

Adds a P hotkey to Youtube, to bring up the Save to Playlist dialog. Playlists will be displayed alfabetically sorted, any any playlist the current video belongs to, will be shown at the top. Also adds a focuced filter input field. If nothing is written into the filter input, all playlists will be shown, alternatively only the playlists where the name containes the sequence of letters typed in the input field, will be displayed. Press escape to exit the dialog.

ผู้เขียน
Flemming Steffensen
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
12
คะแนน
0 1 0
เวอร์ชัน
1.1
สร้างเมื่อ
01-01-2025
อัปเดตเมื่อ
01-01-2025
Size
8.04 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ

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

  1. Hotkey: p
  • Press p (without Ctrl, Alt, or Meta) on any YouTube watch page to open the Save to Playlist dialog.
  1. 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).
  1. 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.
  1. ESC Key
  • Pressing Escape closes (exits) the Save to Playlist dialog.

How It Works

  1. Auto-Injection
  • When the “Save to Playlist” dialog appears, the script automatically inserts a small input field right below the text “Save video to…”.
  1. Immediate Focus
  • The script focuses that new input field so you can start typing to filter playlists immediately.
  1. Filtering
  • As soon as you type text into the input, the list updates in real-time, showing only matching playlist titles.
  1. 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!