I reviewed the source and its much simpler than I thought, here is an extension to jquery that works well, and obviouslly shouldnt break other plugins

var userOSAgent = navigator.userAgent.toLowerCase();

// Figure out what browser is being used
jQuery.platform = {
        mac: /mac/.test(userOSAgent),
        osx: /mac os x/.test(userOSAgent),
        win: /win/.test(userOSAgent),
        linux: /linux/.test(userOSAgent)
};

Reply via email to