Possible Duplicate:
What is the source of the double-dollar sign selector query function in Chrome /Ffirefox?
I noticed that many major Google sites (webapps) such as Search, Gmail, and Reader define not just a $
object but also a $$
object.
I'm not sure what the former is but the latter has at least a selector function similar to jQuery.
$$
is not full jQuery itself though. I can do things like $$('main')
but not $$('main').text()
.
Does anyone know what this $$
object is? Is it a cutdown version of jQuery? Is it the Sizzle selector engine? Is it some other framework which looks a bit similar to jQuery?
Is it documented anywhere?
Bonus questions:
- Is there some other object on Google sites with other jQuery functions?
- What is the
$
object they use?
Background: I've had some trouble getting jQuery to work in Google Chrome user scripts (like Greasemonkey) on Google sites no matter whether I inject jQuery into the sites using script tags or inject my userscript code into their pages to use whatever frameworks or libraries they might already include.