Created
November 3, 2017 16:33
-
-
Save taviso/64b5ea85a31ef612bf940fd3c2f3f43b to your computer and use it in GitHub Desktop.
Automate deleting twitter direct messages.
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
// Open direct messages window, paste this into console. | |
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