Last active
February 16, 2018 12:09
-
-
Save PoomSmart/709eeda8e9b936f257c4ae53c83811c8 to your computer and use it in GitHub Desktop.
Automatic authentication at every session timeout of MUICT My Courses.
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
$(function() { | |
if (top.location.hostname === "mycourses.ict.mahidol.ac.th") { | |
var username = document.getElementById("username"); | |
var password = document.getElementById("password"); | |
if (username != null && password != null) { | |
username.value = "uxx88yyy"; | |
password.value = "password"; | |
document.forms["login"].submit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment