Hacking Gmail

(Grace) #1

Chapter 6 — Gmail and Greasemonkey 99


}


invite=document.getElementById(‘nb_1’);
if (invite){ invite.style.display=’none’; }

document.getElementById(‘ds_spam’).parentNode.style.display=’n
one’;


document.getElementById(‘ds_all’).parentNode.style.display=’no
ne’;


document.getElementById(‘ds_trash’).parentNode.style.display=’
none’;


document.getElementById(‘comp’).parentNode.style.display=’none
’;


div=document.createElement(‘div’);
div.style.paddingTop=’0px’;
div.id=’nb_9’;
html=”<div style=’width:
95%;padding:0px;position:relative’><table width=’100%’
style=’margin-top:0px;’ cellspacing=’0’ cellpadding=’0’
bgcolor=’#c3d9ff’>


style=’padding: 0pt 3px 1px; background: rgb(195, 217, 255)
none repeat scroll 0%; -moz-background-clip: initial; -moz-
background-origin: initial; -moz-background-inline-policy:
initial;’>
cellpadding=’0’>
class=’s h’> src=’/gmail/images/opentriangle.gif’ />
Bloglines
cellspacing=’2’ class=’nb’> id=’bloglines_subs’ style=’width:100%; margin:0px;
padding:0px; list-style-type:none’>”+data+”
cellpadding=’0’ bgcolor=’#c3d9ff’> class=’bl’>
”;
div.innerHTML=html;
bar.appendChild(div);
return true;
}
return false;
}
function init(){
return inithtml();
Continued
Free download pdf