Created
May 18, 2021 20:39
-
-
Save JHWelch/a7a2cae3c546bf054ac9862a8ba17ef4 to your computer and use it in GitHub Desktop.
Mark topics on twitter "not interested" with some JS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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