original post by disco
so me and hippy were talking and decided to make this thread for random java codes that can be fun to play with. so these are some that i have came across.
-lets say you are on a website and there is a saved password in a login area. put this code in the URL box to magically reveal the password!
Code:
javascript:(function(){var%20s,F,j,f,i;%20s%20=%20"";%20F%20=%20document.f
orms;%20for(j=0;%20j<F.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)%2
0{%20if%20(f[i].type.toLowerCase()%20==%20"password")%20s%20+=%20f[i].value%20+%20"\n
";%20}%20}%20if%20(s)%20alert("Passwords%20in%20forms%20on%20this%20page:\n\n"%20+%20
s);%20else%20alert("There%20are%20no%20passwords%20in%20forms%20on%20this%20page.");})();
-this one can be fun to mess with people. this code enables you to turn any website into basically a text document and allows you to edit it (no, it will not actually change the actual website). so put this code in the URL box:
Code:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
-this one doesn't really serve a purpose, its just for fun. when you put this code in the URL box, all the images on the current website will begin to swirl around.
Code:
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(%22img%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0);
so if anyone else knows some random, pointless codes, post em!