Skip to content

Instantly share code, notes, and snippets.

@da2x
Created April 26, 2013 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save da2x/5468809 to your computer and use it in GitHub Desktop.
Save da2x/5468809 to your computer and use it in GitHub Desktop.
I believe this is my most horrible user-agent sniffing done to date. It is exclusively used to deliver msapplication meta data.
if ( strstr( $ua, 'IE' ) ) { … }
// all IE variants (desktop, metro, Xbox, phone), the Irish, and a few other acceptable false positives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment