Weibo Password Remembering

Removes autocomplete="off" attributes

  1. // --------------------------------------------------------------------
  2. //
  3. // ==UserScript==
  4. // @name Weibo Password Remembering
  5. // @description Removes autocomplete="off" attributes
  6. // @match *://weibo.com/login*
  7. // @version 1.0
  8. // @namespace https://gf.qytechs.cn/users/178613
  9. // ==/UserScript==
  10.  
  11. var allow_auto_complete = function(element) {
  12. var usernames = document.getElementById('loginname');
  13. usernames.autocomplete = 'on';
  14. var password = document.getElementsByName('password');
  15. password = password[0];
  16. password.autocomplete = 'on';
  17. }
  18.  
  19. function sleep(ms) {
  20. return new Promise(resolve => setTimeout(resolve, ms));
  21. }
  22.  
  23. async function do_the_job() {
  24. console.log('Taking a break...');
  25. await sleep(2000);
  26. console.log('Two second later');
  27. allow_auto_complete();
  28. }
  29.  
  30. do_the_job();

QingJ © 2025

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