Skip to content

Instantly share code, notes, and snippets.

@sivaprabug
Last active September 12, 2019 02:07
Show Gist options
  • Select an option

  • Save sivaprabug/599be615e9a3e2ac419a47584b019af1 to your computer and use it in GitHub Desktop.

Select an option

Save sivaprabug/599be615e9a3e2ac419a47584b019af1 to your computer and use it in GitHub Desktop.

Revisions

  1. Sivaprabu Ganesan revised this gist Sep 12, 2019. No changes.
  2. Sivaprabu Ganesan revised this gist Sep 12, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions youtube_remove_like_videos.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    /* 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"!
  3. Sivaprabu Ganesan created this gist Sep 12, 2019.
    26 changes: 26 additions & 0 deletions youtube_remove_like_videos.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    /* 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();
    }