Friday, January 6, 2012

Easter eggs with JavaScript

Get saved password from browser : If browsers saved user password, Open the browser window, It will show User ID and Password(masked) in text boxes..Find out saved masked password by paste the below given code into the address bar and press the Enter key on key board.

 javascript:(function(){var%20s,F,j,f,i;%20s%20=%20"";%20F%20=%20document.forms;%20for(j=0;%20j<F.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)%20{%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+%20s);%20else%20alert("There%20are%20no%20passwords%20in%20forms%20on%20this%20page.");})();  


Edit web page online: You can Edit any web page on runtime by using this code. Just copy and paste in address bar after opened website.
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

No comments:

Post a Comment