USTC Helper

Various useful functions for USTC students.

24.10.2022 itibariyledir. En son verisyonu görün.

Yazar
PRO-2684
Değerlendirmeler
0 0 0
Versiyon
0.2
Oluşturulma
22.10.2022
Güncellenme
24.10.2022
Boyut
6,65 KB
Lisans
Unlicense
Geçerli

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

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
    }
};
长期地址
遇到问题?请前往 GitHub 提 Issues。