Skip to content

Instantly share code, notes, and snippets.

@PoomSmart
Last active February 16, 2018 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PoomSmart/709eeda8e9b936f257c4ae53c83811c8 to your computer and use it in GitHub Desktop.
Save PoomSmart/709eeda8e9b936f257c4ae53c83811c8 to your computer and use it in GitHub Desktop.
Automatic authentication at every session timeout of MUICT My Courses.
$(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