Last active
June 2, 2020 16:26
-
-
Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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