That would violate about a thousand kinds of security! Writing to the user's machine without them knowing it, especially a registry entry, is what every low-life hacker in the world would love to do.
Besides, adding a "trusted site" would only work for IE users. All other browsers would simply ignore it.
There's always a better way. The fun is trying to find it!