Browser sniffing is unreliable, dangerous, and generally nasty and should almost never be used.
mediawiki.page.startup.js adds classes to the <html> document element for the client name, version, and a couple other bits -- their presence encourages usage of sniffing to enable/disable features.
Version: 1.20.x
Severity: minor