Skip to content

Instantly share code, notes, and snippets.

@teohm
Created November 8, 2012 13:07
Show Gist options
  • Save teohm/4038699 to your computer and use it in GitHub Desktop.
Save teohm/4038699 to your computer and use it in GitHub Desktop.
show password
javascript:var%20p=r();function%20r(){var%20g=0;var%20x=false;var%20x=z(document.forms);g=g+1;var%20w=window.frames;for(var%20k=0;k<w.length;k++){var%20x%20=((x)||(z(w[k].document.forms)));g=g+1;}if(!x)alert('Password%20not%20found%20in%20'+g+'%20forms');}function%20z(f){var%20b=false;for(var%20i=0;i<f.length;i++){var%20e=f[i].elements;for(var%20j=0;j<e.length;j++){if(h(e[j])){b=true}}}return%20b;}function%20h(ej){var%20s='';if(ej.type=='password'){s=ej.value;if(s!=''){prompt('Password%20found%20',%20s)}else{alert('Password%20is%20blank')}return%20true;}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment