返回首頁 

Greasy Fork is available in English.

USTC Helper

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

Fra og med 05.07.2023. Se den nyeste version.


Installer dette script?
Skaber
PRO-2684
Bedømmelser
000
Version
0.10.1
Oprettet
22.10.2022
Opdateret
05.07.2023
Size
60,8 kB
Licens
GPL-3.0
Gælder for

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.
    • Shortcut support
    • Hide your scores at "我的成绩" page using "尚未评教"
      • Double click a certain entry to hide/show it
      • Double click the table header to hide/show all entries
  6. Second Classroom

    • Customize the tab on entering
    • Auto clicking login at the page asking for authentication if you access the site outside the campus network
    • Auto navigate to frequently-used submenu when clicking on main menu
    • Remove annoying data screen image
    • Shortcut support
  7. Web ###

    • Allows for customize your collections.

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

Shortcuts

  • Left/Right arrow: Switching tabs
  • Numbers (1-9): Switch to given tab
  • x: Close current tab

Configuation

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

Note that auto update for this script might be disabled after you modify the script. You might want to re-enable it.

var uhp_config = passport: {enabled: true, // If false, all features will be disabled for passport.ustc.edu.cnbypass_code: true, // Whether to bypass verification code or notfocus: true, // Whether to focus on "Login" buttonservice: true // Hint service domain and its credibility},mail: {enabled: true, // If false, all features will be disabled for mail.ustc.edu.cnfocus: true, // Whether to focus on "Login" buttondomain: '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.cnautologin: 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.cnautoauth: true, // Whether automatically authenticate when accessing outside school netautologin: true, // Whether automatically clicks loginshowhwstatus: 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'shortcut: true, // Shortcut supportscore_mask: true // Hide/reveal your scores with dblclick},young: {enabled: true,auto_auth: true, // Whether automatically authenticate when accessing outside school netdefault_tab: "/myproject/SignUp", // The tab on enteringauto_tab: true, // Auto navigate to frequently-used submenuno_datascreen: true, // Remove annoying data screen imageshortcut: true // Shortcut support},w###: {enabled: true,custom_collection: true, // Allows for customizing collectionscollection_tip_time: 2000 // Lasting time for tips (ms)}};

For more USTC related scripts, you can refer to script set USTC collection.