Skip to content

Instantly share code, notes, and snippets.

@jaydorsey
Created November 19, 2018 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaydorsey/120c395de9551c330e19469043eaca1f to your computer and use it in GitHub Desktop.
Save jaydorsey/120c395de9551c330e19469043eaca1f to your computer and use it in GitHub Desktop.
Scummy facebook advertisers
// Automatically clicks the "Remove" button for all the advertisers
// that are showing from this page: https://www.facebook.com/ads/preferences/?entry_product=ad_settings_screen
// under the "Advertisers who you've interacted with" (who I actually have never
// interacted with), "Who use a contact list added to facebook" (that they likely
// bought 2nd hand because I've never done business with them)
//
// Click the "More" button multiple times to display them all, then run this script
var buttons = document.querySelectorAll("[data-tooltip-content='Remove']");for (i = 0; i< buttons.length; i++) { buttons[i].click();};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment