Created
May 1, 2012 21:23
-
-
Save brianswisher/2571512 to your computer and use it in GitHub Desktop.
Change locale to uk
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/uk/') + pDelim + 'currencyCode=GBP'; | |
document.location.replace(url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment