Skip to content

Instantly share code, notes, and snippets.

@imthenachoman
Last active August 29, 2017 14:07
Show Gist options
  • Save imthenachoman/33ac31e02a96474cb36754c19153be28 to your computer and use it in GitHub Desktop.
Save imthenachoman/33ac31e02a96474cb36754c19153be28 to your computer and use it in GitHub Desktop.
JavaScript snippet to unlike all your liked activity on FaceBook
function startIt()
{
document.querySelectorAll(".mrs._2fmu.img.sp_XaQA31b2wGR_2x.sx_06c0ed")[0].click();
setTimeout(function()
{
[].slice.call(document.querySelectorAll("a[rel='async-post'][role='menuitem']")).pop().click();
setTimeout(startIt, 2000);
}, 1000);
}
startIt();
// works best if you go to your FB pages activity page and then filter on "Likes"
// and then scroll all the way down until it loads everything and then run the above
// sometimes it gets stuck so you might have to reload the page and start over
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment