Skip to content

Instantly share code, notes, and snippets.

@digggggggggg
Last active January 29, 2019 11:31
Show Gist options
  • Save digggggggggg/7108ef1889ea608dda0c9b4f62b7a925 to your computer and use it in GitHub Desktop.
Save digggggggggg/7108ef1889ea608dda0c9b4f62b7a925 to your computer and use it in GitHub Desktop.
/*
### 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