Skip to content

Instantly share code, notes, and snippets.

@DarrenCattle
Created April 30, 2015 08:22
Show Gist options
  • Save DarrenCattle/dc1f543d95f22e552109 to your computer and use it in GitHub Desktop.
Save DarrenCattle/dc1f543d95f22e552109 to your computer and use it in GitHub Desktop.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
var msgbox = $('#message-input')[0];
var delay = 4000;
for(var a = 0; a < 1000; a++) {
setTimeout(
(function(a) {
return function() {
msgbox.value = a%2 == 0 ? "darren++" : "d++";
$('#message-form').submit();
//console.log(delay);
}
})(a), delay);
delay += 4000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment