Show Password

Rollover any password field to see the password as tooltip pop up.

  1. // ==UserScript==
  2. // @name Show Password
  3. // @namespace http://script.b9mx.com/show-password-tool-tip.user.js
  4. // @description Rollover any password field to see the password as tooltip pop up.
  5. // @include *
  6. // @version 1.1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. window.set_password_title_functions = function(){
  11. var input = document.getElementsByTagName("input");
  12. for(i in input){
  13. var no_listeners = true;
  14. for(l in window.inputs_with_listeners){
  15. if(l === input[i]) no_listeners = false;
  16. }
  17. if(input[i].type === "password" && no_listeners){
  18. input[i].oninput = function(){
  19. this.title = this.value;
  20. }
  21. input[i].title = input[i].value;
  22. window.inputs_with_listeners.push(input[i]);
  23. }
  24. }
  25. }
  26. window.inputs_with_listeners = [];
  27. window.timerid_inputs_listeners = 0;
  28. window.addEventListener("load", function(){
  29. window.timerid_inputs_listeners = setInterval(
  30. window.set_password_title_functions, 5000);
  31. window.set_password_title_functions();
  32. }, false);