Skip to content

Instantly share code, notes, and snippets.

@tomill
Last active January 24, 2018 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomill/8d55d7dd83fe2dfb486077a7056cf12d to your computer and use it in GitHub Desktop.
Save tomill/8d55d7dd83fe2dfb486077a7056cf12d to your computer and use it in GitHub Desktop.
hl=
javascript:void((function () {
var q = location.search;
if (q.search(/hl=en/) > 0) {
q = q.replace(/hl=en/, "hl=ja");
} else if (q.search(/hl=ja/) > 0) {
q = q.replace(/hl=ja/, "hl=en");
} else if (q) {
q = q + "&hl=en";
} else {
q = "?hl=en";
}
location.search = q;
})());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment