Skip to content

Instantly share code, notes, and snippets.

View epk's full-sized avatar

Aditya epk

  • Vancouver, Canada
  • 10:30 (UTC -08:00)
View GitHub Profile
@mattmarcum
mattmarcum / facebook-cleanse.js
Created February 12, 2018 23:03
Console script to unlike everything you ever liked on facebook
/*
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());