Force View Password

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

// ==UserScript==
// @name     Force View Password
// @description Views all passwords in the page in cleartext by editing attribute info. Press E to activate.
// @version  1
// @grant    none
// @match    *://*/*
// @require  http://code.jquery.com/jquery-3.4.1.slim.min.js
// @namespace https://gf.qytechs.cn/users/468281
// ==/UserScript==

let fields = $("input[type=password]").toArray();

localStorage.DEBUG ? console.log(fields) : 0;

$(document).on("keydown", function(k) {
	let key = k.which || k.keyCode;
  if (key == 69) {
    fields.forEach(f => f.setAttribute("type", "text"));
  }
});

$(document).on("keyup", function(k) {
	let key = k.which || k.keyCode;
  if (key == 69) {
    fields.forEach(f => f.setAttribute("type", "password"));
  }
});

QingJ © 2025

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