-
-
Save muddlebee/206df6396d43cd8e35c10c55b3894c66 to your computer and use it in GitHub Desktop.
CAS Auto Login Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CAS Auto Login | |
// @namespace lab.lightsing.me | |
// @version 0.1 | |
// @description CAS Auto Login | |
// @author lightsing | |
// @match https://cas.sustc.edu.cn/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var username = document.getElementById("username"); | |
var password = document.getElementById("password"); | |
var login_btn = document.getElementsByClassName("btn-submit")[0]; | |
if (username !== undefined){ | |
username.value = "Student ID"; | |
password.value = "Password"; | |
login_btn.click(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment