twitter auto links
June 30th, 2008
I like having my twitter on my website. I use the standard supplied twitter javascript badge code to do this. One thing I don’t like about it is that it doesn’t create html links from the links in the tweet. So took a minute and made one that does.
Everybody stand back. I know regular expressions (although it’s just a baby one). It could also be improved to be much more flexible (https, not relinking already linked urls, etc), but it’s simple and working for my cases for now.
Here is the updated blogger.js file, just download it, upload it to your web space, and use it instead of http://twitter.com/javascripts/blogger.js
Links in your twitter badge now are clickable. Neato.


ticketmasterFAN