Created
January 30, 2019 13:39
-
-
Save Eskuero/2a854e7c7a2c43e76e771b4b59a7b791 to your computer and use it in GitHub Desktop.
Javascript to automatically delete all the loaded tweets from a private conversation
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
msgs = document.getElementsByClassName("DMDeleteMessageAction js-tooltip"); | |
button = document.getElementsByClassName("DMDeleteMessage-confirm EdgeButton EdgeButton--danger js-initial-focus")[0]; | |
for (i = 0; i < msgs.length; i++) { | |
msgs[i].click(); | |
button.click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment