Greasy Fork镜像 支持简体中文。

單手救星

Release your busily hand for peace !!

  1. // ==UserScript==
  2. // @license MIT
  3. // @name 單手救星
  4. // @namespace https://gf.qytechs.cn/zh-TW/scripts/482985-%E5%96%AE%E6%89%8B%E6%95%91%E6%98%9F
  5. // @version 23.12.24
  6. // @description Release your busily hand for peace !!
  7. // @author Fourteen
  8. // @require https://code.jquery.com/jquery-3.7.1.min.js
  9. // @match https://lurl.cc/*
  10. // @match https://myppt.cc/*
  11. // @grant none
  12.  
  13. // ==/UserScript==
  14.  
  15. /*
  16.  
  17. 功能 : 預設密碼 - 自動填入上傳日期作為預設密碼
  18.  
  19. */
  20.  
  21. // ====== Variable
  22.  
  23. var Domain ;
  24.  
  25. // ====== Window
  26.  
  27. window.onload = function() {
  28.  
  29. const Url = window.location.href ;
  30.  
  31. // ====
  32.  
  33. console.log( "頁面讀取完畢,開始進行過濾 !!" )
  34.  
  35. // ====
  36.  
  37. Domain = Array.from(Url.matchAll(/\:\/\/(.*)\/\*?/g), md => md[1])[0] ;
  38.  
  39. Domain_Action(Domain) ;
  40.  
  41. }
  42.  
  43.  
  44. // ====== Funtion
  45.  
  46. function Domain_Action(DA_Domain) {
  47.  
  48. let Update_Time = null, Password = null ;
  49.  
  50. // ====
  51.  
  52. switch (DA_Domain) {
  53.  
  54. case "lurl.cc" :
  55.  
  56. if ( $("input#password").length )
  57. {
  58.  
  59. Update_Time = $("#form_password span.login_span").text() ;
  60.  
  61. Password = (Array.from(Update_Time.matchAll(/\d{4}-(\d{2}\-\d{2})/g), m => m[1])[0]).replace("-", "") ;
  62.  
  63. $("input#password").val(Password) ;
  64.  
  65. // ==
  66.  
  67. $("#form_password span.login_span").parent().append(`<br /><span style='font-size: 0.9rem; font-weight:bold; color:#BFBFBF;'>單手救星又解救了您忙碌的另一隻手,世界又美了 !!`).last() ;
  68.  
  69. }
  70.  
  71. break ;
  72.  
  73. case "myppt.cc" :
  74.  
  75. if ( $("input#pasahaicsword").length )
  76. {
  77.  
  78. Update_Time = $("#form_paskznblsword .login_span").text() ;
  79.  
  80. Password = (Array.from(Update_Time.matchAll(/\d{4}-(\d{2}\-\d{2})/g), m => m[1])[0]).replace("-", "") ;
  81.  
  82. $("input#pasahaicsword").val(Password) ;
  83.  
  84. // ==
  85.  
  86. $("#form_paskznblsword span.login_span").parent().append(`<br /><span style='font-size: 0.9rem; font-weight:bold; color:#555555;'>單手救星又解救了您忙碌的另一隻手,世界又美了 !!`).last() ;
  87.  
  88. }
  89.  
  90. break ;
  91.  
  92. }
  93.  
  94. }

QingJ © 2025

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