Hacking Gmail

(Grace) #1

Chapter 4 — Skinning Gmail 51


The rest of the code deals with the physical layout of the application area, espe-


cially removing the borders. If you want to see the CSS listing in its entirety, flip
to Appendix A and check out Listing A-2.


Thanks for the basis for this style sheet must go to Mihai Parparita, who released
the original underneath the Creative Commons Attribution-ShareAlike license at


http://persistent.info/archives/2004/10/05/gmail-skinning.Now
that you have your new style sheet applied, you can get down to the business of


ridding Gmail of advertising.


Removing Google’s Advertising


Gmail is advertising-supported, and Google’s advertising is in no way intrusive,


and can be very useful. But if you’re totally against the concept, and serene within
your soul about the idea of using a service without the quid pro quo, it is entirely


possible to remove the advertising using the techniques in this chapter. The adver-
tising is contained entirely within a div called ad, so the code in Listing 4-5 turns


off advertising.


I do not recommend you use this code to turn off advertising, but I include it


regardless and leave the determination to you.


Listing 4-5:Turning Off Google’s Advertising with CSS

/ Adverts /
body#gmail-google-com div#ad {
display: none !important;
}


And Now


In this chapter, you explored how Gmail is structured and saw that the entire
interface is loaded into a complex selection of frames. You learned how to change


the styling of this interface, and while doing so saw a lot of the interface code. You

Free download pdf