Last active
May 7, 2024 07:49
-
-
Save Birdie0/9d6648551f8c8662af1b321950c457d1 to your computer and use it in GitHub Desktop.
Unmute everyone at Twitter
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
// 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