I was wondering if I could sniff whether or not a visitor has the Dojo Offline Toolkit or Google Gears installed. So I took a dive in their code and I came up with the following.

read this article