Often when viewing a Twitter profile, the same comment pops into my mind: "Does this person follow me?". That's a basic information Twitter profiles still fail to clearly show.
There's a neat site you may know already, doesfollow.com, which lets you know if user1 follows user2 in a very simple way: check http://doesfollow.com/user1/user2 (example). Simple, but this lacks automation and geek fun. Let's make a cute bookmarklet out of this.
The javascript is fairly simple: get Twitter username, create a new page with a frameset and in each frame launch two instances of doesfollow.com to check for mutual followitude.
- (function () {
- var me = 'ozh',
- df = 'http://doesfollow.com/',
- d = document,
- t = d.location.toString().replace(/.*twitter.com\/#!\//, '').replace(/\//, ''),
- nw = window.open(),
- f = '<frame frameborder=0>',
- nd = nw.document;
- nd.write('<html><head><title>Mutwual - bookmarklet by @ozh</title></head><frameset cols=50%,50%,0%>'+f+f+'<frame src=http://bit.ly/fmutwual frameborder=0></frameset></html>');
- nd.body.childNodes[0].src = df + '/' + me + '/' + t;
- nd.body.childNodes[1].src = df + '/' + t + '/' + me;
- nd.close();
- })();
This bookmarklet has my name ('ozh') hardcoded in it, so don't forget to edit it with your own Twitter username.
The bookmarklet also loads in a hidden frame this very page with a few Google Analytics variable set: I figured it would be fun to add some cheap anonymous analytics and monitor bookmarklet usage. If that somehow hurts your privacy concerns, feel free to remove that third frame of course.
Handy bookmarklet link: Mutwual (drag this link to your toolbar or bookmark it — remember, edit it so it works with your name)
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/ux
Ehm, there is very obvious direct message button that only shows in profile if person follows you. That takes knowing (basic) Twitter mechanics, but I think qualifies as clear way to show it.
Rarst: yeah, saw that in the meantime that post was in draft for 15 months. But where's the geek fun then? :)
haha.. I'm with you on that one, Ozh. Whenever one is presented with two options in life and one of them is the behind-the-scenes 'geek' method… well… the decision is already made ;)
Thanks for the Javascript.
Have you checked out Twitual?
It seems to present the mutual following information in a very neat way.
The drawback: it only works for accounts with less than 3000 follow(ers|ing) combined.
I did not work. Are there any restrictions?