Skip to content

Instantly share code, notes, and snippets.

@catilac
Last active April 12, 2020 02:07
Show Gist options
  • Save catilac/09adde304cc9649cabe9cbfede740162 to your computer and use it in GitHub Desktop.
Save catilac/09adde304cc9649cabe9cbfede740162 to your computer and use it in GitHub Desktop.
function chat() {
buttons = document
.querySelectorAll('.conversations-quick-replies__reply button');
if (buttons) {
var idx = Math.floor(Math.random() * Math.floor(buttons.length));
buttons[idx].click();
}
}
function startChat(interval) {
setInterval(chat, interval);
}
startChat(1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment