Created
May 1, 2012 21:20
-
-
Save brianswisher/2571488 to your computer and use it in GitHub Desktop.
Change locale to us
This file contains 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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/us/') + pDelim + 'currencyCode=USD'; | |
document.location.replace(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment