Skip to content

Instantly share code, notes, and snippets.

View mumumu's full-sized avatar

Yoshinari Takaoka mumumu

View GitHub Profile
javascript:(function(d,r,o,l,x,y,u,a,b,n,m,s,i){n=d.createElement("pre");n.setAttribute("style","z-index:100;font-weight:bold;position:absolute;left:0px;top:0px;background:black;color:white"); var img =d.createElement("img"); img.setAttribute("src", "http://www.gravatar.com/avatar/0bafbcfcfb548a4ac20406692858f68b?s=140&d=http%3A%2F%2Fgithub.com%2Fimages%2Fgravatars%2Fgravatar-140.png"); img.setAttribute("style", "z-index:150;font-weight:bold;position:absolute;left:0px;top:150px;"); d.body.appendChild(img); s=new Array(o+1).join(" ");for(i=0;i<l;i++)n.appendChild(m=r[i]=d.createTextNode(s)),n.appendChild(d.createTextNode("\n"));function p(x,y,c,_){with(r[y])nodeValue=nodeValue.substring(0,x)+c+nodeValue.substring(x+c.length)}a=x,b=y,setInterval(function(i){p(x,y," ");for(i=u.length;--i>=0;)with(u[i])p(x--,y," "),x>0?p(x,y,"-"):u.splice(i,1);x=a,y=b,p(x,y,"<?php");},50);d.onkeydown=function(e){switch(e.keyCode){case 90:a=x>0?x-1:x;break;case 83:b=y>0?y-1:0;break;case 67:a=x<o-5?x+1:x;break;case 88:b=y<l-1?