Last active
January 29, 2019 11:31
-
-
Save digggggggggg/7108ef1889ea608dda0c9b4f62b7a925 to your computer and use it in GitHub Desktop.
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
/* | |
### use at your own risk ### | |
### do not use at all if you don't know what this does ### | |
1. go to https://www.facebook.com/browse/other_connections_of/ | |
2. open console and execute the code below. | |
*/ | |
const unlike_all = ()=> { | |
[].slice.call(document.querySelectorAll('a[role=button]')).filter(x=>x.innerText=='Unlike').map(x=>{x.click(); x.remove()}); | |
[].slice.call(document.querySelectorAll('a[role=button][action=cancel]')).map(x=>x.click()); | |
window.scrollTo(0,document.body.scrollHeight); | |
window.setTimeout(unlike_all, 3 * 1000) | |
}; | |
unlike_all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment