7

YouTube maintains an automatic playlist on my channel, called "Liked videos", with all the videos I have clicked the thumbs-up button.

For personal reasons, I want to clean up this list. (Deleting my YouTube account is not an option.)

I know I can delete the videos one by one, but that wouldn't fit my December, 2025 deadline. Is there a way (or a user script) to delete them all at once?

13

Go to the Liked playlist, open a console in the browser and write this:

var items = $('body').getElementsByClassName("pl-video-edit-remove-liked-video"); 
    for(var i = 0; i < items.length; i++){
        items[i].click();
            }

After this just hit the refresh button.

  • this worked a charm - no need for a bookmarklet since it's not something one does on a daily basis :) – RozzA Jul 6 '17 at 8:25
  • 1
    I did it this way: document.querySelectorAll('.pl-video-edit-options > button').forEach(b => b.click()) since there was a child button for removing videos – solstice333 Sep 21 '18 at 19:48
1

You can make the list private your privacy settings. I don't think it is possible to automate the process without making some sort of script for it (which I do not have the knowledge to be able to code one).

This might seem mundane, but the easiest way I can see of selectively removing videos from the playlist would be by going to "My Liked Videos" and clicking x on each one. Again, there might be a script that would make this easier, but my knowledge of scripting is extremely limited.

1

You can use a bookmarklet to remove videos from a playlist. Still, the process will be removing one by one. But at least you don't have to do it and faster than you manually removing it.

javascript:
function d(){
   var el = document.getElementsByClassName('pl-video-edit-remove');
   if (el.length > 0) {
      el[el.length-1].click();
      setTimeout(d,300);
   }
}
d();

Copy this code. On your bookmark bar, right-click → New Bookmark → Paste this code into the location. Then go to you "Liked videos" videos page and click on this bookmark. It will start to remove the videos from the bottom to top order.

  • pl-video-edit-remove should now be pl-video-edit-remove-liked-video, they renamed the class. It works better in the browser console (without javascript:) than in a bookmarklet. – comp500 Nov 25 '18 at 16:48

protected by Community Feb 28 '17 at 23:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.