Last active
April 12, 2020 02:07
-
-
Save catilac/09adde304cc9649cabe9cbfede740162 to your computer and use it in GitHub Desktop.
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
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