USTC Helper

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

目前為 2023-04-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
PRO-2684
評價
0 0 0
版本
0.8.2
建立日期
2022-10-22
更新日期
2023-04-19
尺寸
39.8 KB
授權條款
GPL-3.0
腳本執行於

Functions

  1. Unified authentication

    • Bypass verification code
    • Focus on the login button (so you only need to hit Enter to login)
    • Prompt service domain, url and its credibility (If the service is provided by a student or teacher, you may contact him/her via email by clicking "Student" or "Staff")
  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
    • Checking your homework status (Uploaded, Not uploaded, Error)
  5. Education Administration System

    • Auto focus on or click login button.
  6. Second Classroom

    • Customize the tab on entering
    • Auto navigate to frequently-used submenu when clicking on main menu
    • Remove annoying data screen image

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

Configuation

Modify the code yourself according to the default config shown below, and then save your modification.

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
        service: true // Hint service domain and its credibility
    },
    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 links in current tab (Significantly improves performance)
    },
    bb: {
        enabled: true, // If false, all features will be disabled for www.bb.ustc.edu.cn
        autoauth: true, // Whether automatically authenticate when accessing outside school net
        autologin: true, // Whether automatically clicks login
        showhwstatus: true // Whether to display homework status (may consume some traffic)
    },
    jw: {
        enabled: true, // ...
        login: 'focus' // What to do to the login button: 'none', 'focus', 'click'
    },
    young: {
        enabled: true,
        default_tab: "/myproject/SignUp", // The tab on entering
        auto_tab: true, // Auto navigate to frequently-used submenu
        no_datascreen: true, // Remove annoying data screen image
    }
};