Plugin: Twitter Tools – Nice Links

If you use Twitter, WordPress, and the digest feature from Alex King’s Twitter Tools together for linkblogging, you’ve probably seen your posts getting cluttered up with unreadable links like That’s OK for one tweet at a time, but it can get ugly for a whole list.

This plugin hooks into the Twitter Tools digests and calls out to replace those short URLs.

  • It follows redirects to update the post with the final URL.
  • It tries to retrieve the title from the remote site and use it for the link text.
  • If it can’t retrieve the title, it will use the hostname.
  • If it can’t connect to the remote site within a few seconds, it will leave the link unchanged.

Download the latest version:

Known Issues

  • It doesn’t try to convert character sets, so if you link to a page using a different charset, the title may end up messed up.
  • In testing, I noticed duplicate digests popping up a bit more often than usual. I don’t know if the time spent calling out to remote sites is contributing to a race condition or if it’s a coincidence.
  • No attempt is made to alter or shorten the title. It should be safe from XSS attacks because Twitter Tools runs the tweet through WordPress’ character filter after this runs, and it should be safe from broken HTML because it stops as soon as it hits another tag, regardless of whether it’s the end of the title or something else. But some websites do use very long titles, which can lead to unwieldy links. At least they’ll be more readable than



See also: Twitter Tools Skip FB Plugin.