Created
July 10, 2021 13:16
-
-
Save jackphelps/b6e10b4a73fcf7e25d1c590a224c0512 to your computer and use it in GitHub Desktop.
twitter topics >:(
This file contains 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
// https://twitter.com/settings/your_twitter_data/twitter_interests | |
// Right click on the page -> click "Inspect" | |
// click the "Console" tab | |
// Paste the below into the console text field that appears | |
// Due to rate limiting (or just twitter errors -- unclear), we leave a hefty timeout between requests | |
// This can take forever, leave the tab open and go for a walk or something | |
// Twitter also regularly adds more topics and auto-selects them | |
// There is no winning, only triage, but I've found this helps a bit with the rate of annoying interest suggestions | |
var timeout = 2500; | |
await async function() { | |
const checked = document.querySelectorAll("div > input[type='checkbox']:checked"); | |
for (c of checked) { | |
await new Promise(r => setTimeout(r, timeout)); | |
c.scrollIntoView(true); | |
c.click(); | |
} | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment