MattWilcox/Adaptive-Images — pull request #34 by gerv (2012-02-17 14:17:51+00:00)
Title: Fix browser detection to be more future-proof - check for mobile browsers instead of desktop ones.

This does a better job for unusual OSes, tablets etc. "Mobile" is in the UA string of the latest mobile IE, mobile Firefox and all mobile WebKits, but is not in the UA string of Android tablets or desktop browsers.

If you want to treat Opera Mobile as a mobile browser too, change the detection to "mobi" instead of "mobile".