enable autofill

auto full username password login

  1. // ==UserScript==
  2. // @name enable autofill
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-07-02
  5. // @description auto full username password login
  6. // @author You
  7. // @grant none
  8. // @match https://10.0.33.252:*/*loginc?*
  9. // @match http://10.0.33.251:*/*loginc?*
  10. // @match https://10.0.33.251:*/*loginc?*
  11. // @match http://10.0.39.170:*/*loginc?*
  12. // @match https://10.0.39.170:*/*loginc?*
  13. // @match http://10.0.34.60:*/*loginc?*
  14. // @match http://10.0.34.57:*/*loginc?*
  15. // @match http://asp282devxm.com:*/*loginc?*
  16. // @match http://oa.bjsasc.com:*/*loginc?*
  17. // @match http://asp281dev.com:*/*loginc?*
  18. // @match https://aspdemo281.com:*/*loginc?*
  19. // @match http://asp282dev.com:*/*loginc?*
  20. // @match http://asp283dev.com:*/*loginc?*
  21. // @match http://asp284dev.com:*/*loginc?*
  22. // @match http://asp285dev.com:*/*loginc?*
  23. // @match http://asp285test.com:*/*loginc?*
  24. // @match http://asp.asp.asp:*/*loginc?*
  25. // @license MIT
  26. // ==/UserScript==
  27.  
  28. (function() {
  29. 'use strict';
  30.  
  31. function deal(){
  32. var newValue=""
  33. var el1s = document.querySelectorAll('input[autocomplete="off"]');
  34.  
  35. // 遍历所有找到的元素并移除autocomplete属性
  36. el1s.forEach(function(element) {
  37. element.removeAttribute('autocomplete');
  38. });
  39.  
  40. var form = document.getElementById('signupForm');
  41. var el3 = document.getElementById('password1');
  42. form.insertBefore(el3, form.children[2]);
  43. if (el3) {
  44. el3.type = 'password';
  45. el3.id = 'password2';
  46. el3.value=""
  47. }
  48.  
  49. var el2 = document.getElementById('password_orig');
  50. if (el2) {
  51. el2.style.width = '1px';
  52. el2.style.height = '1px';
  53. el2.value = "123"
  54. el2.style.display="none";
  55. }
  56.  
  57. var el4 = document.getElementsByClassName('fa-lock')[0];
  58. if(el4){
  59. el4.style.display="none";
  60. }
  61. }
  62. setTimeout(deal,100);
  63. // Your code here...
  64. })();