Various useful functions for USTC students: verification code bypass, auto login, rec performance improvement and more.
目前為
Enter to login)BB System(Online Teaching Platform)
Education Administration System
If you need a certain feature, leave a comment and I might add it as far as I can.
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
}
};