useragent testing awesomeness

From: CHYRON (DSMITHHFX)15 Feb 2013 16:50
To: Matt 12 of 12
Just remembered I'm not browser-sniffing anyway, I'm device-sniffing (for mobile devices):

if ((navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)|(BlackBerry)/i)))  alert("I hate you all");