Created
December 16, 2012 23:50
-
-
Save bjankord/4314336 to your computer and use it in GitHub Desktop.
Custom UAs with JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.__defineGetter__('userAgent', function(){ | |
return 'foo' // customized user agent | |
}); | |
alert(navigator.userAgent); // 'foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment