-1 This is a bad hack, and doesn't actually change anything. You're just overriding the getter, which will have to be done on every single page, and if you're planning on doing that then why are you even bothering to check userAgent in the first place?