Skip to content

Instantly share code, notes, and snippets.

@brianswisher
Created May 1, 2012 21:24
Show Gist options
  • Save brianswisher/2571525 to your computer and use it in GitHub Desktop.
Save brianswisher/2571525 to your computer and use it in GitHub Desktop.
Change locale to dk
var re = /\/..\//gi;
var url = document.location.href;
var pDelim = (url.split('?').length>1) ? '&' : '?';
url = url.replace(re, '/').split('/mobile/').join('/mobile/dk/') + pDelim + 'currencyCode=DKK';
document.location.replace(url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment