For several months, I wrote an account for my company and just developed a main site for it with installation instructions for it (our employees are based all over the world, and very few have heard about user scripts, not to mention used them, therefore this interface is designed to reduce the time I spend supporting the script).
What I would like to do, on the installation page, determine which browser and OS / OS version they use, so that I can highlight the most important instructions, a little darker than the rest, or just not display irrelevant sections.
For example, for IE6 you should use Trixie (I suppose) to install custom scripts, and this is only supported in Win XP. IE7 is supported in Win XP, IE8 is supported in Win XP and Win 7, and IE9 is supported only on Win 7. For IE7, 8, and 9, I recommend using IEPro. The difference between Trixie and IEPro is that Trixie requires the .user.js file extension, which must be saved in C: / Program Files / bhelpuri. IEPro, on the other hand, requires the extension to be .ieuser and stored elsewhere. For IE, I would specifically like to detect the version and display only the correct link (either .user.js or .ieuser, depending on which plug-in they should use for their current browser) so that they are taken to the correct version of the file for this browser with the correct save path for this OS / OS version. Does it still make sense?
Basically, my question is: does anyone know a way to detect the version of the operating system? I am currently using http://www.stoimen.com/blog/2009/07/04/jquery-os-detection/ , but this does not give an OS version, but only an OS. I tried intercepting all the variables stored in the navigator object without success. Any help would be greatly appreciated.
Edit: Thanks Nates, I put the exact code http://jsfiddle.net/Mu8r5/1/ . Hope this helps someone in the future.