JavaScript to Reveal Asterisk Hidden Passwords

JavaScript code can be used to reveal hidden passwords in Google Chrome, Internet Explorer, Opera in a popup as an alert message (Mozilla Firefox does not support this). Users of this browser can utilize the bookmarklet given below or the addon mentioned at the end of this post. If you use Google Chrome and the code does not seem to work, precede it with "javascript:" without quotes).

 Reveal Asterisk
To use the JavaScript, open your web browser, open the webpage for which the password is hidden in asterisks, copy and paste the following code in the address bar.

javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k<w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i<f.length;i++) {var e=f[i].elements;for(var j=0;j<e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Password found ', s)}else{alert('Password is blank')}return true;}}

For Mozilla Use/Install this ADD ON
Share on Google Plus

About infotechmaestro

A tech blog to feed every readers mind to know about the latest gadgets, games, what's trending and provide how to tutorials. Connect wih us on Facebook, Twitter, GooglePlus.
    Blogger Comment
    Facebook Comment


Post a Comment