Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to Delete all liked YouTube Videos at once!
/* For more https://www.youtube.com/watch?v=wg3ubtxyfyQ */
/* How to delete all liked YouTube Videos at once!
IMPORTANT! You have to click on "Edit" after you click on the "Liked videos" playlist, then you open up the console and use the code! This method does not work if you don't click on "Edit"!
1. Click on "Liked videos" under "Library".
2. Click on "Edit".
3. Open the browser console.
4. Paste the code and enter. The page should now refresh.
5. Refresh again to remove the videos.
How to open console:
Chrome: Windows: Ctrl + Shift + J | Mac: Option + Cmd + J
FireFox: Windows: Ctrl + Shift + K | Mac: Option + Cmd + K (You may have to write "allow pasting" in the console to paste the code)
Opera: Windows: Ctrl + Shift + J | Mac: Option + Cmd + J
Edge: Press "F12 "and then click on the "Console" tab.
Safari: Option + Cmd + C (You have to turn on the "Develop menu" to use this shortcut. Click on Safari in upper left corner then click on Preferences, and click on the Advanced tab. At the bottom of the page, check the box next to "Show Develop menu in menu bar".)
*/
var items = $('body').getElementsByClassName("pl-video-edit-remove-liked-video");
for(var i = 0; i < items.length; i++){
items[i].click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.