I have created one script that shows passwords on hover just like Windows 8 on eye click.
I have made this functionality through JavaScript with following code.
function text(){this.type="text"}function password(){this.type="password"}function addHandlers(){var e=false;var t=document.evaluate("//input[@type='password']",document,null,6,null);for(var n=t.snapshotLength-1,r;r=t.snapshotItem(n);n--){if(!e){r.addEventListener("mouseover",text,false);r.addEventListener("mouseout",password,false)}else{r.addEventListener("focus",text,false);r.addEventListener("blur",password,false)}}}addHandlers()
Sorry for the packed JavaScript code, but I want to create a bookmark or bookmarklet that run thiss script...
I tried:
javascript:(mycode);
But it didn't work...