Last active
June 2, 2020 16:26
-
-
Save supersloth/08987a38249b387eb3b9550f22ca06e7 to your computer and use it in GitHub Desktop.
Revisions
-
supersloth revised this gist
May 29, 2020 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal 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 // 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'); -
supersloth created this gist
May 29, 2020 .There are no files selected for viewing
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 charactersOriginal 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() } })