Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hackingbutlegal/1c34274faf54327e51d06cd32678847d to your computer and use it in GitHub Desktop.
Save hackingbutlegal/1c34274faf54327e51d06cd32678847d to your computer and use it in GitHub Desktop.
delete twitter dm's
function deleteNextConversation()
{
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) {
clearInterval(tmr)
return;
}
dm.firstChild.click();
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000);
setTimeout('document.getElementById("confirm_dialog_submit_button").click()', 2000);
}
var tmr = setInterval(deleteNextConversation, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment