Created
July 4, 2014 19:46
-
-
Save teffalump/3e8be7ba74764e411485 to your computer and use it in GitHub Desktop.
Toggle hide and show password fields in dwb (put in userscripts directory)
This file contains hidden or 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;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'){f.elements[i].type='text';f.elements[i].pwmarker='true'}else if(f.elements[i].pwmarker=='true'){f.elements[i].type='password'}else{}}};" > ${DWB_FIFO} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment