H3C记住账号密码

H3C记住登录(不可用)账号和密码

// ==UserScript==
// @name         H3C记住账号密码
// @namespace    https://www.zhxlp.com
// @version      0.1
// @description  H3C记住登录(不可用)账号和密码
// @author       Zhxlp
// @match        https://192.168.2.1:14000/web/frame/login.html
// @require      https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
// @grant        GM.setValue
// @grant        GM.getValue
// ==/UserScript==
 
/* global jQuery */

(async () => {
    let userName = await GM.getValue('user_name', 'admin');
    let password = await GM.getValue('password', '');
    jQuery('#user_name').val(userName);
    jQuery('#password').val(password);
    jQuery('#login_button').click(async () => {
        let userName = jQuery('#user_name').val();
        let password = jQuery('#password').val();
        await GM.setValue('user_name', userName || 'admin');
        await GM.setValue('password', password || '');
    })
})();

QingJ © 2025

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