Force View Password

Views all passwords in the page in cleartext by editing attribute info. Press E to activate.

  1. // ==UserScript==
  2. // @name Force View Password
  3. // @description Views all passwords in the page in cleartext by editing attribute info. Press E to activate.
  4. // @version 1
  5. // @grant none
  6. // @match *://*/*
  7. // @require http://code.jquery.com/jquery-3.4.1.slim.min.js
  8. // @namespace https://gf.qytechs.cn/users/468281
  9. // ==/UserScript==
  10.  
  11. let fields = $("input[type=password]").toArray();
  12.  
  13. localStorage.DEBUG ? console.log(fields) : 0;
  14.  
  15. $(document).on("keydown", function(k) {
  16. let key = k.which || k.keyCode;
  17. if (key == 69) {
  18. fields.forEach(f => f.setAttribute("type", "text"));
  19. }
  20. });
  21.  
  22. $(document).on("keyup", function(k) {
  23. let key = k.which || k.keyCode;
  24. if (key == 69) {
  25. fields.forEach(f => f.setAttribute("type", "password"));
  26. }
  27. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址