Skip to content

Instantly share code, notes, and snippets.

@brianswisher
Created May 1, 2012 21:23
Show Gist options
  • Save brianswisher/2571512 to your computer and use it in GitHub Desktop.
Save brianswisher/2571512 to your computer and use it in GitHub Desktop.
Change locale to uk
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