This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async () => { | |
| const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| if (!confirm( | |
| "Remove ALL videos from Watch Later?\n\n" + | |
| "This repeatedly uses YouTube's normal Remove from Watch later command." | |
| )) return; | |
| let removed = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yt-dlp \ | |
| --no-playlist \ | |
| -f "bv*[height<=720][vcodec^=avc1]+ba[acodec^=mp4a]/b[height<=720]" \ | |
| --merge-output-format mp4 \ | |
| --embed-metadata \ | |
| --embed-chapters \ | |
| --embed-thumbnail \ | |
| --convert-thumbnails jpg \ | |
| --add-metadata \ | |
| --restrict-filenames \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This script will remove all videos from watch later list | |
| // | |
| // Usage | |
| // | |
| // #1 go to https://www.youtube.com/playlist?list=WL | |
| // #2 run following script | |
| (async function() { | |
| const sleep = (timeout) => new Promise(res => setTimeout(res, timeout)) | |
| const untilDefined = async (factory, timeout = 100) => { |