This script likes all the songs in a Youtube Music Playlist at once.
- Visit a Playlist's page on ytm (URL looks like:
https://music.youtube.com/playlist?list=...
- Press
ctrl
+shift
+j
. This opens the Developer Console. - Copy the script in this gist (That's in
script.js
) - Paste the code into the Developer Console on the ytm Tab, hit enter.
- Great, you're done!
Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
TheOnlyWayUp © 2024
Well we are about to find out. This is the account linked to an account I use google paid services on, and it is months old, and I have 1400ish songs to move. Which btw, you can't even view all 1400 songs in one go in the window so this script will have to be used multiple times and the liked playlist refreshed and possibly try and duplicate clicking the like button.
I may try changing the interval time to 20 seconds or so for the next batch, currently doing ~450 songs. I would love to see a modification to not like the button if already liked, maybe chat GPT can help me. I'm well versed in python but JS isn't my thing.
I tried doing this on both soundliz and tunemymusic,, I guess I needed it to create the playlist in the first place because you can't make your liked music a seperate playlist and a public link, but I only needed one of the services. Was hoping one of them had figured this out...
It also seems that music.youtube.com has about a 1000 song limit before it won't load any new tracks from a playlist. If you have a very large playlist you will need to refresh and rescroll and rerun the script several times to get all the songs added. Use the updated script below to help mitigate these issues.