Skip to content

Instantly share code, notes, and snippets.

@champierre
Created December 2, 2011 11:18
Show Gist options
  • Select an option

  • Save champierre/1422854 to your computer and use it in GitHub Desktop.

Select an option

Save champierre/1422854 to your computer and use it in GitHub Desktop.
Fill out login info for the library reservation system
// ==UserScript==
// @title Library Auto Login
// @description Fill out login info for the library reservation system
// @namespace http://blog.champierre.com
// @include https://anylibrary.url/clis/entry <== REPLACE THIS
// ==/UserScript==
document.getElementsByName('UID')[0].value = UID; <== REPLACE THIS
document.getElementsByName('PASS')[0].value = PASS; <== REPLACE THIS
document.getElementsByName('CONTACT')[0].childNodes[3].selected = true;
document.getElementsByName('LCOD')[0].childNodes[4].selected = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment