// ==UserScript==
// @name          etradeUncenter
// @namespace     http:www.tranzoa.net/~alex
// @description	  Puts etrade pages on the left so wide pages don't need to be side-scrolled so aggressively.
// @include       https://*.etrade.com/*
// @include       https://*.etrade.wallst.com/*
// ==/UserScript==
//
//      February 4, 2006        bar         http://www.tranzoa.com  alex_greasemonkey __ tranzoa.com
//      February 4, 2006        bar         added etrade.wallst.com to the list
//                                          put the float: left on <body> rather than the container DIV since some pages are organized too flatly
//
//

(function()
{
    var n = document.getElementsByTagName('BODY')[0];           /*  getElementByID("etContainer") instead does the main container, but that container isn't in all pages. */

    if (n)
    {
        /***
            Note !!!! This code to replace any 'float: ....' value in the DIV's style is untested
                      (and I've not even done regx's in Javascript before).
                      At script coding time, the DIV had no style attribute.
        ***/

        var a       = n.getAttribute('style');
        if (!a)
        {
            a   = "";
        }
        else
        {
            a  += ";"

            r       = /^\s*float\b[^;]+/i
            a.replace(r, "");
            r       = /;\s*float\b[^;]+/i
            a.replace(r, "");
        }

        n.setAttribute("style", a + "float: left");
    }

})()



/* eof */
