Skip to content

Instantly share code, notes, and snippets.

@AbelVM
Created August 10, 2024 09:35
Show Gist options
  • Save AbelVM/56fdf76005359069c567ad22f7e3605e to your computer and use it in GitHub Desktop.
Save AbelVM/56fdf76005359069c567ad22f7e3605e to your computer and use it in GitHub Desktop.
Twitter interests profiling cleaner

While logged in Twitter, go to

https://x.com/settings/your_twitter_data/twitter_interests

You will see a bunch of subjects that Twitter thinks you're interested on. Clicking all the checkboxes manually is a pain in the ass, so...

Open dev tools (F12, command + i, whatever), and go to Network tab to monitor everything

Open the console and run

Array.from(document.querySelectorAll('input[type=checkbox]')).filter(k=>k.checked).forEach(k=>k.click());

Wait till it returns to prompt, you'll see a lot of 503 errors. Twitter limit the amount of interaction and put your requests on hold for a while (some seconds or minutes)

Reload the page. Now the list hast quite fewer checked subjects, but if you scroll down, the lasts bunch are still checked. So run the script again, and wait

You might get an error message, like wow, we are superbusy right now and can't comply with your request, so just wait a bit and run it again and again till all the checkboxes are off

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