// ==UserScript==
// @name          XM Radio Online - Change Idle Timeout
// @namespace     http://bluevulpine.net/~webfox/userscripts/
// @description	  Changes the idle timeout on XM Radio Online's Player.
// @include       http://player.xmradio.com/*
// ==/UserScript==
// Notes:
//
//   If, when installing, you see an error including text like this: 
//     "(NS_ERROR_FILE_NOT_FOUND) location JS frame 
//      :: chrome://greasemonkey/content/utils.js 
//      :: getContents "
//   See: http://greaseblog.blogspot.com/2005/12/troubleshooting-064.html
//
//   The default timeout is 120 minutes. Now, I don't know about you, but 
//   I start the player, then minimize the window while I continue to work.
//   Having to open the player every 2 hours and reselect the channel gets
//   tedious. 
//
//   This does NOT allow you to get service for free - it just adjusts how long
//   the player waits after the last event in its window to consider the session
//   idle and stop playback.
//
//   Also - you might consider the following quick-search bookmark. Log into
//   XM Radio Online as usual, but instead of opening the player you can directly
//   tune a channel:
//
//   http://player.xmradio.com/player/2ft/playMedia.jsp?ch=%s&speed=high
//
//   Not familiar with quicksearch bookmarks? You can bookmark a single channel, like
//    XM Chill 84 on high quality:
//
//   http://player.xmradio.com/player/2ft/playMedia.jsp?ch=84&speed=high



window.addEventListener("load", function(e) {
    config.timeout = 480 ; //8 hours as minutes.
}, false);
