Greasy Fork

来自缓存

Greasy Fork is available in English.

USTC 助手

为 USTC 学生定制的各类实用功能:绕过验证码,自动登录,睿客网性能优化以及更多。

当前为 2022-12-29 提交的版本,查看 最新版本

作者
PRO-2684
评分
0 0 0
版本
0.6.0
创建于
2022-10-22
更新于
2022-12-29
大小
32.0 KB
许可证
Unlicense
适用于

功能

  1. 统一身份认证: 绕过验证码,将焦点置于登录按钮(以便按下回车直接登录),提示服务域名及其可信度

  2. USTC 邮箱: 自动切换邮箱域名,将焦点置于登录按钮

  3. 睿客网: 自动点入统一身份认证系统以便登录;部分链接设为当前标签页打开(可显著提高加载速度)

  4. BB 系统(网络教学平台): 自动点击登录以及校园网外访问时的登录

  5. 综合教务系统: 自动聚焦或点击登录按钮

需要更多功能可添加评论,在我能力范围内可能会添加。

配置

自行根据以下默认配置修改源代码,随后保存你的修改。

var uhp_config = {
    passport: {
        enabled: true, // 若为 false, 将禁用针对 passport.ustc.edu.cn 的所有功能
        bypass_code: true, // 是否绕过验证码
        focus: true, // 是否聚焦到登录按钮
        service: true // 提示服务域名及其可信度
    },
    mail: {
        enabled: true, // 若为 false, 将禁用针对 mail.ustc.edu.cn 的所有功能
        focus: true, // 是否聚焦到登录按钮
        domain: 'mail.ustc.edu.cn' // 自动使用的邮箱域名
        // 可选的值:
        // 'mail.ustc.edu.cn'
        // 'ustc.edu.cn'
        // 'ah.edu.cn'
        // '' (不自动切换域名)
    },
    rec: {
        enabled: true, // 若为 false, 将禁用针对 rec.ustc.edu.cn & recapi.ustc.edu.cn 的所有功能
        autologin: true, // 是否自动点击登录按钮(仅限统一身份认证登录)
        opencurrent: true // 是否在当前标签页打开部分支持的链接(可显著提高加载速度)
    },
    bb: {
        enabled: true, // 若为 false, 将禁用针对 www.bb.ustc.edu.cn 的所有功能
        autoauth: true, // 是否在校园网外访问要求验证身份时自动点击登录
        autologin: true // 是否在主界面自动登录
    },
    jw: {
        enabled: true, // ...
        login: 'focus' // 登录按钮的动作: 'none', 'focus', 'click'
    }
}