Skip to content

Instantly share code, notes, and snippets.

@tomh0491
tomh0491 / index.js
Created September 26, 2025 16:21 — forked from evdokimovm/index.js
Save the whole list of your saved youtube playlists to text file. Open youtube.com/feed/library or youtube.com/feed/you press "show more" in playlists section. scroll page down to load all playlists list and run the following script in console
var saving_playlist = window.location.href.includes('/playlist?list=')
var all_contents =
saving_playlist ?
document.querySelectorAll('div#contents > ytd-playlist-video-renderer > div#content > div#container > div#meta')
:
document.querySelectorAll("#content > yt-lockup-view-model > div > div > yt-lockup-metadata-view-model > div.yt-lockup-metadata-view-model-wiz__text-container")
var format = '.txt'