Skip to content

Instantly share code, notes, and snippets.

@hemmrich
Last active December 13, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hemmrich/4974800 to your computer and use it in GitHub Desktop.
Save hemmrich/4974800 to your computer and use it in GitHub Desktop.
Auto-Login script for University of Michigan sites (Google Chrome)
INSTALLATION GUIDE
1) Open a text editor and copy the code from autologin.user.js into it.
2) Between the quotation marks on lines 6 and 7, type your UofM uniquename and kerebos password
3) Save the file with the .user.js extension
4) In Chrome, type "chrome://extensions" into the URL bar and hit enter
5) Drag the file you saved in step 3 into your Chrome window
6) Add the extension by clicking "Add" in the Confirm New Extension window that pops up
7) Delete the .user.js file (or edit it to remove your username/password)
// ==UserScript==
// @include https://weblogin.umich.edu/*
// @include https://weblogin.umich.edu/
// ==/UserScript==
var username = "";
var password = "";
document.getElementById("login").value = username;
document.getElementById("password").value = password;
document.getElementById("loginSubmit").click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment