title: How can I modify the tumblr bookmarklet to post to a specific tumblr blog?
body: <p>I have a couple blogs linked to my Tumblr account, but the <a href="http://www.tumblr.com/goodies" rel="noreferrer">bookmarklet</a> always selects my "primary" blog (the first one in the list).</p>
  
  <p>How can I modify the bookmarklet so that it will auto-select a specific blog?  I would like to have multiple bookmarklet links, e.g. "Share on blog1", "Share on blog2" so that I don't have to manually select which blog to create the post in.</p>
  
  <p>Default Tumblr <a href="http://www.tumblr.com/goodies" rel="noreferrer">bookmarklet</a> looks like this:</p>
  
  <pre><code>javascript: var d = document,
      w = window,
      e = w.getSelection,
      k = d.getSelection,
      x = d.selection,
      s = (e ? e() : (k) ? k() : (x ? x.createRange().text : 0)),
      f = 'http://www.tumblr.com/share',
      l = d.location,
      e = encodeURIComponent,
      p = '?v=3&amp;u=' + e(l.href) + '&amp;t=' + e(d.title) + '&amp;s=' + e(s),
      u = f + p;
  try {
      if (!/^(.*\.)?tumblr[^.]*$/.test(l.host)) throw (0);
      tstbklt();
  } catch (z) {
      a = function () {
          if (!w.open(u, 't', 'toolbar=0,resizable=0,status=1,width=450,height=430')) l.href = u;
      };
      if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0);
      else a();
  }
  void(0)
  </code></pre>