Skip to content

Instantly share code, notes, and snippets.

@sk22
Created May 4, 2021 11:37
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 sk22/6a5bb076b7b939c469e097d555ae1fb3 to your computer and use it in GitHub Desktop.
Save sk22/6a5bb076b7b939c469e097d555ae1fb3 to your computer and use it in GitHub Desktop.
run this script on twitter web, click the "more" button and watch the tweet disappear
document.querySelectorAll('div[aria-label="More"]').forEach(more => more.addEventListener('click', () => {
setTimeout(() => document.querySelectorAll('div[role="menuitem"][tabindex="0"]')[0].click(), 250)
setTimeout(() => document.querySelector('[data-testid="confirmationSheetConfirm"]').click(), 500)
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment