ShowPassword

Show your password in the inputbox.

2015-09-26 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

// ==UserScript==
// @name        ShowPassword
// @namespace   ShowPassword
// @description Show your password in the inputbox.
// @include     *
// @version     2015.09.26.02
// @author      OscarKoo
// @grant       none
// ==/UserScript==

(function () {
  var delay = 333;
  var pwdList = document.querySelectorAll('input[type=password]');
  for (var i = 0; i < pwdList.length; i++) {
    var current = pwdList[i];
    current.removeEventListener('mouseover', showPassword);
    current.removeEventListener('mouseout', hidePassword);
    current.addEventListener('mouseover', showPassword);
    current.addEventListener('mouseout', hidePassword);
  }
  function showPassword(e) {
    e.target.type = 'text';
    return false;
  }
  function hidePassword(e) {
    setTimeout(function () {
      e.target.type = 'password';
    }, delay);
    return false;
  }
})();