I wonder how Google deal with all these little easter eggs from a code perspective. It's pretty impressive that they can add so much extra to a particular search term without it affecting the overall code quality.
It's just a matter of adding in the hooked code into the associated field in the DB.
I know I over simplified this, but I would assume that's the gist.