So I got to playing 2048 a decent amount, and starting getting the feeling that there was a 'pattern' that would win this game for me. Perhaps you've had the same thought! As a result, I wrote a little snippet of code that that cycles throw the keys Up, Right, Down, Left (feel free to create your own pattern).
Copy and paste this into your Chrome/Firefox console to automate 2048!
function pressKey(i) {
var evt = document.createEvent("KeyboardEvent");
evt.initKeyEvent ("keydown", true, true, window, 0, 0, 0, 0, 37+i%4, 37+i%4);
document.dispatchEvent(evt);