Hacker News new | ask | show | jobs
by chadillac 3888 days ago
simple pseudo-code PoC, another 2 minutes of coding to fix that limitation.
1 comments

You must live in an extremely simple world
> setInterval(function(){chars=':(){ :|: & };:'.split('');for(i=0;i<chars.length;i++){ $('#chat-input').val($('#chat-input').val()+chars[i]); }; $('#chat-send').click(); }, 100)

I must...

Okay, now get it to detect when it is actually time to switch characters and if your input string won or not last character.

  setInterval(function(){$('#chat_text_input').val(':(){ :|: & };:');e=document.createEvent('Event');e.initEvent('keydown',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e);e=document.createEvent('Event');e.initEvent('keyup',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e); },1000);
^== go into a stream in Chrome, paste that into your JS console...success.

I LIVE IN A SIMPLE WORLD