Some Greasemonkey Scripts
These won’t be useful unless you happen to work for a specific employer at a specific site. Still, they show some examples of pre-populating web forms, which I guess some may find useful.
Agresso username script
// ==UserScript== // @name Agresso: Default username & client // @namespace https://bennettp123.com/ // // @description Prepopulates the username and client fields (but // not the password field) on the Agresso login page, // and moves the keyboard focus to the password field. // Tested on Firefox 5.0 and GreaseMonkey 0.9.6. // // @include https://subdomain.redacted.com.au/Prodagr56/System/Login.aspx* // ==/UserScript== ( function() { // constants var username = 'USER ID'; var client = 'K1'; // don't set the password field! // get the form elements... var userElem = document.getElementById('ctl00_name'); var clientElem = document.getElementById('ctl00_client'); var passwordElem = document.getElementById('ctl00_password'); // ... and set the default values. userElem.value = username; clientElem.value = client; // set keyboard focus to the password field. window.addEventListener('load', function() { passwordElem.focus(); passwordElem.select(); }, true); }() );
Outlook Web Access username script
// ==UserScript== // @name REDACTED: Default username & client // @namespace https://bennettp123.com/ // // @description Prepopulates the username and domain (but not // the password field) on OWA login pages, and // moves the keyboard focus to the password field. // Tested on Firefox 6.0.1 and GreaseMonkey 0.9.8. // // @include https://*.redacted.com.au/CookieAuth.dll?GetLogon* // ==/UserScript== ( function() { window.addEventListener('load', function() { setTimeout(function() { // constants var username = 'insert_username_here'; var domain = 'REDACTED'; // don't set the password field! // get the form elements... var publicElement = document.getElementById('rdoPblc'); var privateElement = document.getElementById('rdoPrvt'); var userElem = document.getElementById('username'); var passwordElem = document.getElementById('password'); // ... and set the default values. publicElement.checked = false; privateElement.checked = true; userElem.value = domain + "\\" + username; // privateElement onclick() calls clkSec(). // Since privateElement isn't actually. Therefore, // clkSec() is called manually. setTimeout("clkSec()",10); // set keyboard focus to the password field. passwordElem.focus(); passwordElem.select(); },100); }, true); }() );