Skip to content

Instantly share code, notes, and snippets.

@digggggggggg
Created January 29, 2019 11:31
Show Gist options
  • Save digggggggggg/b51b31dbd4cb73a87d0379a9bfe45e6f to your computer and use it in GitHub Desktop.
Save digggggggggg/b51b31dbd4cb73a87d0379a9bfe45e6f 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/{YOUR_USERNAME}/likes_all
2. open console and execute the code below.
*/
setInterval( ()=>{
[].slice.call(document.querySelectorAll('.PageLikeButton')).filter(x=>x.innerText.replace(/[\W]/gi,'')==='Liked').slice(0,1).map(x=>x.click());
setTimeout(()=> { [].slice.call(document.querySelectorAll('.InterestListMenuDisconnect a')).filter(x=>x.innerText.replace(/[\W]/gi,'')=='Unlike').map(x=>{x.click(); x.remove()}); }, 500);
window.scrollTo(0,document.body.scrollHeight);
},1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment