Created
July 4, 2014 19:47
-
-
Save teffalump/0dcaa9e30886c9bb8896 to your computer and use it in GitHub Desktop.
Show hidden fields in alert box in dwb (put in userscripts directory)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
# dwb: sp | |
echo -En "js var F,j,f,i;var s=new Array();F=document.forms;for(j=0;j<F.length;++j){f=F[j];for(i=0;i<f.length;++i){if(f.elements[i].type.toLowerCase()=='password'){s.push(f.elements[i].value)}}}if(s.length>0){alert('Passwords in forms on this page:\n\n'+s.join('\n'))}else{alert('There are no passwords in forms on this page.')};" > ${DWB_FIFO} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment