The Pain of Building a Gmail Chrome Extension
blog.inboxhooks.com
blog.inboxhooks.com
And it so happens that Closure code tends to create a ton of extra DOM structure within the JS code, so the 50-level-deep <div> tree isn't much of a surprise, especially with something as complex as the Gmail UI.
I just poked around: there seems to be a 2.0 API.
In the web inspector console on any open gmail page:
> gmonkey.info("2.0")
"The "gmonkey" module is not officially supported and is subject
to change, we will support previous versions for at least 1-month.
Use gmonkey.load(v, callback) to load in the full API where v is
the version number of the API you want passed to calback. Latest
set of the bindings is "2.0". kthxbye"