Skip to content

Instantly share code, notes, and snippets.

@supersloth
Last active June 2, 2020 16:26
Show Gist options
  • Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.
Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.
// 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');
for(let button of buttons){button.click();};
var unlikes = document.getElementsByClassName('itemLabel');
Array.from(unlikes).forEach(unlike => {
if(unlike.textContent === 'Unlike') {
unlike.click()
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment