Skip to content

Instantly share code, notes, and snippets.

@dvx
Last active February 16, 2024 13:09
Show Gist options
  • Save dvx/67db6e6ac085d960ea43b9510eb16fec to your computer and use it in GitHub Desktop.
Save dvx/67db6e6ac085d960ea43b9510eb16fec to your computer and use it in GitHub Desktop.
How to Remove all Facebook Interest Categories

Facebook is Evil

If you're like me, you've amassed hundreds, if not thousands, of "interests" on Facebook over the past decade. These interests can be used to track, target, and advertise to you. These public "likes" can also be used for more nefarious purposes, like blackmail or coersion (https://www.forbes.com/sites/kashmirhill/2013/01/23/facebook-graph-search-embarrassing).

This is a short guide on how to easily remove them.

Guide

  1. First, make sure you're logged into Facebook and navigate to https://www.facebook.com/adpreferences/?section=interests

  2. Click "See All Interests"

  3. Open your browser's Javascript console and type in: setInterval(function(){ document.querySelectorAll('div[aria-label="Remove"]')[0].click() }, 2000); where 2000 is the number of miliseconds to wait between clicking the "Remove" button. My default is a sensible two seconds. This function clicks "Remove" over and over again. Facebook makes it purposefully cumbersome to remove all interests at once.

  4. Wait.

@bnievera
Copy link

Thank the digital gods for this. Now if I could let this happen in the actual app, I'd be a happy camper. ditto the suggested or recommended ads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment