There are 3 previous versions of this script.
// ==UserScript==
// @name PimpMyiGoogle
// @namespace http://www.google.com/ig
// @description Change the custom iGoogle Themes
// @include http://www.google.com/ig*
// @include https://www.google.com/ig*
// ==/UserScript==
//header improvements
document.getElementsByTagName('body')[0].style.fontFamily = 'Segoe UI, helvetica, sans-serif';
document.getElementById('footerwrap').style.display = 'none';
document.getElementById('nhdrwrapsizer').style.height ='60px';
var read = document.createElement("a");
read.className = "gb1";
read.innerHTML = "Reader";
read.href = "http://www.google.com/reader/view/?hl=en&tab=wy";
document.getElementById('gbar').appendChild(read);
document.getElementById('undel_box').style.position ="relative";
document.getElementById('undel_box').style.zIndex ="9999";
//toggle for sidebar
document.getElementById('col1').style.display='none';
function togPages(){
var c = document.getElementById('col1');
c.style.display = (c.style.display == "none" ? "block" : "none" );
}
var d = document.createElement('div');
d.style.margin = "2px"; d.style.padding = "5px"; d.style.position="absolute";d.style.top="50px"; d.style.left="2px";
var a = document.createElement('button');
a.href="#";
a.innerHTML="Show/Hide Pages";
a.addEventListener ( 'click', togPages, true);
d.appendChild(a);
document.getElementById('gbar').appendChild(d);
//page style adjustments - not always working
document.styleSheets[document.styleSheets.length-1].insertRule('#modules { "padding:2px 0px !important;" }',document.styleSheets[document.styleSheets.length-1].cssRules.length);
document.styleSheets[(document.styleSheets.length-1)].insertRule('.rnd_modboxin { "display:none;" }',document.styleSheets[(document.styleSheets.length-1)].cssRules.length);
//setup min-max boxes
var links=new Array();
var mod = document.getElementById('modules');
var a_s = mod.getElementsByTagName('div');
for (i=0;i<a_s.length;i++){
//if a is a new max bos
if (a_s[i].id.match("_home_menu") ){
var mx = document.createElement('a');
var id = a_s[i].id.match(/[0-9]{1,3}/g);
mx.href="javascript:void(0);";
mx.style.position='absolute';
mx.style.right='55px';
var mxs = document.createElement('span');
mxs.className="athidden";
mxs.innerHTML = "max";
mx.appendChild(mxs);
a_s[i].appendChild(mx);
mx.setAttribute('rel', id);
links.push(mx);
}
}
//set the class and add eventHandler
for (i = 0; i < links.length; i++) {
var a = ('m_'+links[i].rel+'_b');
links[i].className =(document.getElementById(a).style.display == "none" ? "maxbox" : "minbox");
links[i].addEventListener ( 'click',
function (){
var e = 'm_'+this.rel+'_b';
unsafeWindow._zm(''+this.rel+'','32');
this.className = this.className == 'maxbox'?'minbox':'maxbox';
}, false);
}
