[jQuery] Append context data to support links

If you (like me) are a receiver of technical support emails, it's
sometimes frustrating to get the user to submit information such as
the used browser, ip-adress, and such.
Here's a simple jQuery snippet that will add some contextual
information to your support email-links:

 
 $('a[href="mailto:support@mydomain.com"]').each(function () { 
 var ip = currentIP; // global variable that should be set by 
server somewhere on each requested page 
 
 var body = '?body=%0A%0A----------------------------------%0A'; 
 body += 
'Please%20do%20not%20remove%20this%20information.%20It%20will%20help%20us%20address%20your%20issue.%20%0A'; 
 body += 'IP%20Address%3A%20%20%20%20%20' + ip + '%0A'; 
 body += "User-agent%3A%20%20%20%20%20" + navigator.userAgent + "%0A"; 
 body += "Cookies%3A%20%20%20%20%20%20%20%20%20%20" + 
navigator.cookieEnabled + "%0A"; 
 body += "Platform%3A%20%20%20%20%20%20%20%20%20" + 
navigator.platform + "%0A"; 
 body += '----------------------------------'; 
 var href = $(this).attr('href'); 
 $(this).attr('href', href + body); 
 }); 

You could extend this a lot, to include userID, and more.
Heads up to Tumblr who inspired this quite heavily.