Saturday, February 3, 2007

Windows Live Mail Autofill script

Firefox 2 apparently can't fill in the username/password on the Windows Live Mail sign-in page so I wrote a short greasemonkey script to do so.

here is the source:
// ==UserScript==
// @name Windows Live Sign In
// @description Automatically sign in to Windows Live Mail cause Firefox can't
// @include http://login.live.com/*
// @include https://login.live.com/*
// @version 0.1
// ==/UserScript==

//add event listener to call my anonymous function after the page loads
window.addEventListener('load',
function() {
//Get email address box and fill it
document.getElementById("i0116").value = "YOUR_USERNAME";

//Get password box and fill it
document.getElementById("i0118").value = "YOUR_PASSWORD";
}, true);


Install Windows Live Mail Autofill script (from userscripts.org)
Install Windows Live Mail Autofill script (from mirror -- if userscripts.org is down)

To get the script to work, change the values for YOUR_USERNAME and YOUR_PASSWORD to their correct values. Then go to mail.live.com and test it out

No comments: