Skip to content

Instantly share code, notes, and snippets.

@Birdie0
Created February 12, 2024 23:35
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 Birdie0/9d6648551f8c8662af1b321950c457d1 to your computer and use it in GitHub Desktop.
Save Birdie0/9d6648551f8c8662af1b321950c457d1 to your computer and use it in GitHub Desktop.
Unmute everyone at Twitter
// open https://twitter.com/settings/muted/all
// and keep tab opened until it finishes!
(async () => {
const sleep = async (ms) => new Promise((r) => setTimeout(r, ms))
let el = document.querySelector('[aria-label^="Unmute "]')
while (el) {
el.scrollIntoView({ behavior: 'smooth', block: 'end' })
el.click()
console.count('unmuted')
// lower delay if needed
await sleep(500)
el = document.querySelector('[aria-label^="Unmute "]')
}
console.log('Done!')
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment