Hacking Gmail

(Grace) #1

32 Part II — Getting Inside Gmail


To see which of these divs is the mother lode, use the Web Developer Extension
to Firefox to turn off the styling (click on the Disable menu, the first on the left,
and then Disable Styles), outline the block level elements in red, and display
their names. Doing this, you get the horrible Figure 4-4.

It’s very plain from Figure 4-4 that the div called d_tlist2is the one you’re
really interested in. It’s the one that isn’t empty, which is something of a giveaway.
Using the DOM inspector, you can drill down further. Notice that d_tlist2
contains an iframe, called tlist, and that that iframe, when opened in a new
DOM inspector, looks like Figure 4-5.

You can also see from the DOM inspector that the iframe that makes
up this interface is addressed as follows:http://gmail.google.
com/gmail?search=inbox&view=tl&start=0&init=1&zx=3177c401850460
90895581735.

FIGURE4-4: Gmail with no styling... quite ugly
Free download pdf