Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var words = "wat wtf dude nigga cock burger stahp oh no god penis";
- function shuffle(o){
- for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
- return o;
- };
- setInterval(function() {
- var msg = words.split(' ');
- msg = shuffle(msg); msg = msg.splice(0, Math.round(Math.random() * 3)).join(' ');
- $('#message-input').val(msg);
- $('#message-input').parents('form').trigger('submit');
- }, 10*1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement