Created
February 12, 2018 23:03
-
-
Save mattmarcum/92cff950e25fa5f39f5fc05f1b22c75f to your computer and use it in GitHub Desktop.
Console script to unlike everything you ever liked on facebook
This file contains 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 works on 2/12/2018, but will need to be updated as facebook updates it's DOM | |
1: Go to your profile, click More->Likes | |
2: Scroll down to the bottom of the page and keep scrolling as facebook loads more of your 'likes' | |
3: Open the console and c&p this: | |
*/ | |
document.querySelectorAll('button.PageLikedButton').forEach(b=>b.click()); | |
document.querySelectorAll('li[data-label="Unlike"] a').forEach(a=>a.click()); |
So add some rate limiting (sleep) to the script. This'll ofcourse slow it down a lot.
how do i add a sleep script?
Please I hope there will be an update on this on the new facebook. Does it work with u guys?
It seems it doesn't work on me anymore. :(
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may get rate limited using this script.
This'll result in Likes appearing to have been removed, while they'll apparently remain active somehow and they slowly reappear on your profile.
So add some rate limiting (sleep) to the script. This'll ofcourse slow it down a lot.