I would like to change things on my site depending on the user agent. Specifically I want to change the text and url of a download button so that when a user is on Ubuntu/Linux, Arch/Linux, Debian-based/linux, Mac OS X, or Windows they are are presented with info and a download button that will be reverent to them. Kinda like LibreOffice does.
I would like to do this in JavaScript and not on the server.
Thanks in advance.