單手救星

Release your busily hand for peace !!

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @license MIT
// @name         單手救星
// @namespace    https://greatest.deepsurf.us/zh-TW/scripts/482985-%E5%96%AE%E6%89%8B%E6%95%91%E6%98%9F
// @version      23.12.24
// @description  Release your busily hand for peace !!
// @author       Fourteen
// @require      https://code.jquery.com/jquery-3.7.1.min.js
// @match        https://lurl.cc/*
// @match        https://myppt.cc/*
// @grant        none

// ==/UserScript==

/*

功能 : 預設密碼 - 自動填入上傳日期作為預設密碼

*/

// ====== Variable

  var Domain ;

// ====== Window

  window.onload = function() {

    const Url = window.location.href ;

    // ====

    console.log( "頁面讀取完畢,開始進行過濾 !!" )

    // ====

    Domain = Array.from(Url.matchAll(/\:\/\/(.*)\/\*?/g), md => md[1])[0] ;

    Domain_Action(Domain) ;

  }


// ====== Funtion

  function Domain_Action(DA_Domain) {

    let Update_Time = null, Password = null ;

    // ====

    switch (DA_Domain) {

      case "lurl.cc" :

        if ( $("input#password").length )
        {

          Update_Time = $("#form_password span.login_span").text() ;

          Password = (Array.from(Update_Time.matchAll(/\d{4}-(\d{2}\-\d{2})/g), m => m[1])[0]).replace("-", "") ;

          $("input#password").val(Password) ;

          // ==

          $("#form_password span.login_span").parent().append(`<br /><span style='font-size: 0.9rem; font-weight:bold; color:#BFBFBF;'>單手救星又解救了您忙碌的另一隻手,世界又美了 !!`).last() ;

        }

        break ;

      case "myppt.cc" :

        if ( $("input#pasahaicsword").length )
        {

          Update_Time = $("#form_paskznblsword .login_span").text() ;

          Password = (Array.from(Update_Time.matchAll(/\d{4}-(\d{2}\-\d{2})/g), m => m[1])[0]).replace("-", "") ;

          $("input#pasahaicsword").val(Password) ;

          // ==

          $("#form_paskznblsword span.login_span").parent().append(`<br /><span style='font-size: 0.9rem; font-weight:bold; color:#555555;'>單手救星又解救了您忙碌的另一隻手,世界又美了 !!`).last() ;

        }

        break ;

    }

  }