mostra nascondi password figuccio

comandi dal menu per mostrare nascondere password

当前为 2023-09-21 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         mostra nascondi password figuccio
// @namespace    https://greasyfork.org/users/237458
// @version      0.1
// @description  comandi dal menu per mostrare nascondere password
// @author       figuccio
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @match        *://*/*
// @grant        GM_registerMenuCommand
// @run-at       document-end
// @noframes
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @license        MIT
// ==/UserScript==
(function() {
    'use strict';
    var $ = window.jQuery;
    function initMenu(){
    if($('input[type=password]').length>0){
    GM_registerMenuCommand('Mostra password', () => {
    $('input[type=password]').attr("type", "1");
            });
    GM_registerMenuCommand('Nascondi password', () => {
    $('input[type=1]').attr("type", "password");
            });
        }

    }

    initMenu();

})();