// ==UserScript==
// @name          Show Password onMouseOver
// @namespace     http://loucypher.wordpress.com/
// @include       *
// @description	  Show password when mouseover on password field
// ==/UserScript==

var inputs, input;
inputs = document.evaluate('//input[@type="password"]', document, null, 6, null);
if(!inputs.snapshotLength) return;
for(var i = 0; i < inputs.snapshotLength; i++) {
  input = inputs.snapshotItem(i);
  input.addEventListener('mouseover', function(event) {
    this.type = 'text';
  }, false);
  input.addEventListener('mouseout', function(event) {
    this.type = 'password';
  }, false);
}

