i am dustin diaz

a JavaScriptr...

boosh.

don't worry about it.

Twita@talinkahashify your tweets

Well hello everyone. I had previously tweeted about this a few weeks ago... but sometimes I forget more folks follow this blog than my Twitter. If any of you use our Twitter API to embed your latest statuses on your website, here is a simple little script that will do a few niceties for you. This includes linkafying, hashtagifying, and of course the most important, atify (aka: "at replies"). check out the source, and use it as such:

tweet code

ify.clean('your tweet text');
Thus making transforming a tweet such as the following:

Before and After

Bfore

Hey @ded. You should #stfu! and use http://canon.com #rant. 

kthxbye @erin http://www.google.com/search?q=canon+rules



After

Hey @<a href="http://twitter.com/ded">ded</a>. 

You should #<a href="http://search.twitter.com/search?q=%23stfu">stfu</a>!

and use <a href="http://canon.com">http://canon.com</a> 

#<a href="http://search.twitter.com/search?q=%23rant">rant</a>.

kthxbye @<a href="http://twitter.com/erin">erin</a>

<a href="http://www.google.com/search?q=canon rules">

http://www.google.com/se...</a>

Download: source | minified

this is who i am

Hi, my name is Dustin Diaz and I'm an Engineer @ObviousCorp. Previously @Twitter, @Google, and @Yahoo, author of Strobist® Info co-author of JavaScript Design Patterns, co-creator of the Ender JavaScript Framework, a Photographer, and an amateur Mixologist. This is my website. Welcome!

On this site I write about JavaScript. You can also follow along with my open-source work on Github.

This site is optimized and works best in Microsoft Internet Explorer 6.