It seemed faster to check the html className because it's already set based on getPlatform(), isFirefox() and isFirefoxUpToDate().