H3C记住账号密码

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

目前为 2021-09-23 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name H3C记住账号密码
  3. // @namespace https://www.zhxlp.com
  4. // @version 0.1
  5. // @description H3C记住登录(不可用)账号和密码
  6. // @author Zhxlp
  7. // @match https://192.168.2.1:14000/web/frame/login.html
  8. // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
  9. // @grant GM.setValue
  10. // @grant GM.getValue
  11. // ==/UserScript==
  12. /* global jQuery */
  13.  
  14. (async () => {
  15. let userName = await GM.getValue('user_name', 'admin');
  16. let password = await GM.getValue('password', '');
  17. jQuery('#user_name').val(userName);
  18. jQuery('#password').val(password);
  19. jQuery('#login_button').click(async () => {
  20. let userName = jQuery('#user_name').val();
  21. let password = jQuery('#password').val();
  22. await GM.setValue('user_name', userName || 'admin');
  23. await GM.setValue('password', password || '');
  24. })
  25. })();

QingJ © 2025

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