Javascript snippet to recover hidden password from browser

I ‘ll leave this here, for future use…

Steps:
1. Open your browser and use the autocomplete feature but do not press submit.
2. Copy the snippet below to your address bar and press enter

1
2
3
javascript:(function(){var s,F,j,f,i;s="";F=document.forms;
for(j=0;j<F.length;++j){f=F[j];for(i=0;i<f.length;++i){if(f[i].type.toLowerCase()=="password")s+=f[i].value+"\n";}}
if(s)alert("Password is:\n\n"+s);else alert("No passwords");})();

3. An alert box, with your password will appear.