Skip to content

Instantly share code, notes, and snippets.

@Eskuero
Created January 30, 2019 13:39
Show Gist options
  • Save Eskuero/2a854e7c7a2c43e76e771b4b59a7b791 to your computer and use it in GitHub Desktop.
Save Eskuero/2a854e7c7a2c43e76e771b4b59a7b791 to your computer and use it in GitHub Desktop.
Javascript to automatically delete all the loaded tweets from a private conversation
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