Skip to content

Instantly share code, notes, and snippets.

@JHWelch
Created May 18, 2021 20:39
Show Gist options
  • Save JHWelch/a7a2cae3c546bf054ac9862a8ba17ef4 to your computer and use it in GitHub Desktop.
Save JHWelch/a7a2cae3c546bf054ac9862a8ba17ef4 to your computer and use it in GitHub Desktop.
Mark topics on twitter "not interested" with some JS.
/*
* Mark all the topics visual on a Twitter page as "not interested".
* Someday maybe I'll reach the end.
*
* Currently I run from the console, will eventually write an extension.
*/
// From your feed
document
.querySelectorAll('[aria-label="Set as not interested"]')
.forEach((element) => element.click());
// From the Topics page
// Accessible at https://twitter.com/{USERNAME}/topics
document
.querySelectorAll('[aria-label="Dismiss"]')
.forEach((element) => element.click());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment