Greasy Fork 还支持 简体中文。

USTC Helper

Various useful functions for USTC students: verification code bypass, auto login, rec performance improvement and more.

Verze ze dne 31. 10. 2022. Zobrazit nejnovější verzi.

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

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

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!)

Autor
PRO-2684
Hodnocení
0 0 0
Verze
0.4.1
Vytvořeno
22. 10. 2022
Aktualizováno
31. 10. 2022
velikost
30,0 KB
Licence
Unlicense
Spustit na

Functions

  1. Unified authentication: Bypass verification code, focus on the login button (so you only need to hit Enter to login)

  2. USTC Mail: Automatically switch mail domain, focus on the login button

  3. Rec: Auto clicking into USTC CAS login page; Setting certain links to open at the current tab (can greatly improve performance)

  4. BB System(Online Teaching Platform): Auto clicking login at both main page and the page asking for authentication if you access the site outside the campus network

  5. Education Administration System: Auto focus on or click login button.

If you need a certain feature, leave a comment and I might add it as far as I can.

Configuation

var uhp_config = {
    passport: {
        enabled: true, // If false, all features will be disabled for passport.ustc.edu.cn
        bypass_code: true, // Whether to bypass verification code or not
        focus: true // Whether to focus on "Login" button
    },
    mail: {
        enabled: true, // If false, all features will be disabled for mail.ustc.edu.cn
        focus: true, // Whether to focus on "Login" button
        domain: 'mail.ustc.edu.cn' // Automatically switch to given mail domain
        // Expected values:
        // 'mail.ustc.edu.cn'
        // 'ustc.edu.cn'
        // 'ah.edu.cn'
        // '' (Do nothing)
    },
    rec: {
        enabled: true, // If false, all features will be disabled for rec.ustc.edu.cn & recapi.ustc.edu.cn
        autologin: true, // Whether automatically clicks login (USTC cas login)
        opencurrent: true // Whether open certain supported links in current tab (can greatly improve loading speed)
    },
    bb: {
        enabled: true, // If false, all features will be disabled for www.bb.ustc.edu.cn
        autoauth: true, // Whether automatically authenticate when accessing the site outside campus network
        autologin: true // Whether automatically clicks login on the main page
    },
    jw: {
        enabled: true, // ...
        login: 'focus' // What to do to the login button: 'none', 'focus', 'click'
    }
};