Skip to content

Instantly share code, notes, and snippets.

@dzfl
Created November 6, 2009 08:43
Show Gist options
  • Save dzfl/227852 to your computer and use it in GitHub Desktop.
Save dzfl/227852 to your computer and use it in GitHub Desktop.
javascript:args = '%s'.split(/ /i); if (args.length > 1) { var serv = args[0]; var id = args[1];} else { var serv = 'd'; var id = args[0] } location.href = "http://" + serv + ".hatena.ne.jp/" + id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment