显示密码

2019/12/11 上午12:26:27

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        显示密码
// @namespace   Violentmonkey Scripts
// @match       *://*/*
// @grant       none
// @version     1.0
// @author      yaohunzhanyue
// @description 2019/12/11 上午12:26:27
// ==/UserScript==

show_pw();

function show_pw() {
  'use strict';
	var e, t;
	e = document.getElementsByTagName("input");
	for (var a = 0; a < e.length; a++)
		if (t = e[a], "password" == t.type.toLowerCase()) try {
			t.type = "text"
		} catch (e) {
			var r, n;
			r = document.createElement("input"), n = t.attributes;
			for (var o = 0; o < n.length; o++) {
				var i, c, d;
				i = n[o], c = i.nodeName, d = i.nodeValue, "type" != c.toLowerCase() && "height" != c && "width" != c & !!d && (r[c] = d)
			}
			t.parentNode.replaceChild(r, t)
		}
}