Remove All Your Facebook Likes

Stumbled upon a Github Gist containing a simple, straightfoward piece of Javascript in it.

// Remove All Your Facebook Likes
setInterval(() => {
  for (const Button of document.querySelectorAll('div[aria-label="Action options"]')) {
    for (const remove of document.querySelectorAll('div[role="menuitem"]')) {
}, 1000)

After grabbing the gist, visit{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE after replacing {your_id_or_username} with your Facebook ID or username in that URL.

Open the console, Command + Shift + J usually or just right the background of a webpage and click Inspect Element, then click Console and paste the code above and hit Enter. Depending on how active you were, this may take a time or hit an API limit. You can always try again later after some time; my guess is 24 hours.

Enjoy some privacy. 😁