Created
May 4, 2021 11:37
-
-
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
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
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