Unify Chrome/Safari and Firefox detect rules