Skip to content

Instantly share code, notes, and snippets.

@supersloth
Last active June 2, 2020 16:26
Show Gist options
  • Select an option

  • Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.

Select an option

Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.

Revisions

  1. supersloth revised this gist May 29, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Delete FB likes from console
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    //this will run based on what's viewable in your browser, so you may have to do it a few times (if you try and do a whole bunch at once it will fail, i found the sweet spot to be 50-80 loaded on the page at a time
    // this will run based on what's viewable in your browser, so you may have to do it a few times (if you try and do a whole bunch at once it will fail, i found the sweet spot to be 50-80 loaded on the page at a time
    // visit your likes page: https://www.facebook.com/thejoshuarivera/likes (your userid not mine)
    // open the console
    // run the commands one by one

    var buttons = document.getElementsByClassName('PageLikedButton');

  2. supersloth created this gist May 29, 2020.
    13 changes: 13 additions & 0 deletions Delete FB likes from console
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    //this will run based on what's viewable in your browser, so you may have to do it a few times (if you try and do a whole bunch at once it will fail, i found the sweet spot to be 50-80 loaded on the page at a time

    var buttons = document.getElementsByClassName('PageLikedButton');

    for(let button of buttons){button.click();};

    var unlikes = document.getElementsByClassName('itemLabel');

    Array.from(unlikes).forEach(unlike => {
    if(unlike.textContent === 'Unlike') {
    unlike.click()
    }
    })