Friday, February 13, 2009

A script to add Unfollow buttons to Twitter.com/home




I've mentioned on Twitter that I have been working on a bunch of Twitter scripts (I'm up to a dozen so far) designed to do different things, running either from Greasemonkey or within OpenOffice. One of the scripts I wrote is something called AddUnfollowButtons (source code here).

Call me old-fashioned, but I still use twitter.com/home quite a lot (rather than a special Twitter client) to view tweets and add followees. I'm always adding new follows, checking them out for a while, then unsubscribing the ones that spend too much time talking about their pet canary or whatever. Trouble is, it's easier to follow someone than to unfollow them, and my "following" list (people I follow) gets bigger and bigger, but hardly ever smaller.

When I'm deciding whether to follow someone, I inevitably navigate to that person's page and check out that person's last 20 or so tweets. If I like what I see, I click the Follow button, then head back to my home page.

But when I want to stop following someone, I usually know immediately. I don't need to navigate to the person's home page and check his or her last 20 tweets, because I've already seen enough of that person's tweets on my own home page to know I don't want to follow them any more.

So I needed some way to "unfollow" people one by one on my twitter.com/home timeline without leaving the page. I decided to try to write a Greasemonkey script to do that. And it works!

The script puts an "unfollow" button under each user-thumbnail beside each status update. All you do if you don't want to follow that person any more is clilck the button. The script does an AJAX call to Twitter (per the Twitter REST API) and removes that person from my "following" list, then refreshes the page. (It doesn't have to refresh the page ... this is AJAX after all ... but I want it to, so I can see my "following" count decrement -- and wipe the page clean of that person's tweets.)

Let me know if you like the script, and if you modify it, point me to the new version so I can try it out.

Please note
that you need to insert your own Twitter username and password in the code if you want to avoid a credentials challenge at runtime. (I've clearly commented the line where you need to do this. It's about two-thirds of the way down.)

Retweet this.

8 comments:

  1. This greasemonkey script doesn't seem to be working anymore...

    ReplyDelete
  2. Auto Tweet Generator Software!

    Autopilot Twitter Marketing Just Through One Software!

    Tweeting When You're Away From Your Computer Has Never Been Easier!

    "Discover How This Twitter Schedule Tweets For You On Autopilot Mode"

    Sit Back And Relax And Give Your Twitter Followers Valuable Content
    While You're Away.... That'll Turn Them Into Raving Fans..

    -> Manage your Twitter postings and schedule multiple posts in just seconds easily!

    -> Set the time, edit and import messages in just a few clicks of a button!

    -> Think about the time saved on making changes without having to log into Twitter!

    -> Twitter marketing made easy because you can track your tweets through one software!

    -> Gain rapid exposure through Twitter without having to physically be involved in tweeting all day!

    -> It automatically submits your messages to Twitter while you focus on more pressing matters!

    If You Can Click, Copy, and Paste, You Can Use "TwitterBuzz Auto Tweet Generator!

    So go ahead! and Click Here to Download Your Software immediately...





    Auto Tweeter Bot

    Tweet Automator

    Automated Twitter Tool

    An Automated Tweeting Solution

    Automatic Tweet

    ReplyDelete
  3. Anonymous9:24 PM

    In other trick taking games, players can take tricks on a number of kind of contract.
    This means to sell your mods would be considered the same as pirating the
    game itself. You can only acquire a small amount of in-game money or gold,
    and cannot participate in the auction house, send mail, join guilds,
    or even whisper to someone unless someone whispers to
    you first.

    My blog post: simply click the following article []

    ReplyDelete
  4. Anonymous10:08 PM

    Believing that you are actually starving, it releases chemicals
    that actually make it harder to lose weight in an effort
    to conserve energy. Authorities inside the area will need to have an intensive understanding of laboratory and labeling
    techniques, infection security precautions, appropriate blood attract approaches to the
    elderly and for infants and even more. Do not be tempted to lose weight as quickly as you can, because a
    crash diet will have you eating less than a thousand calories a day slowing down your metabolism.



    Also visit my site :: Full Review

    ReplyDelete
  5. Anonymous1:13 AM

    "Worked All Zones Award" is the same concept with time zones.

    Often, long term schedules with a bit of breathing room work best.
    Another radio commercial production tip to chew on is to make sure the audio
    quality is excellent on any spot your produce.

    Look into my blog post radio carsija kostenlose muzik

    ReplyDelete
  6. Anonymous10:26 AM

    Though the levels look really simple, they are actually quite challenging.
    This means to sell your mods would be considered the same
    as pirating the game itself. The nature of Reddit's platform makes it possible -- through great and creative effort, it appears -- to give users a gift of the unexpected, rather than deriving humor from humiliation.

    my web-site - mouse click the up coming post

    ReplyDelete
  7. Anonymous9:48 PM

    If, at the end of this time period, the score is tied, there are two options the officials can take.
    All that energy is boxed in, amplified by the space.
    This classic game integrates all-out entertainment with vocabulary enhancement in one amazing game.


    My weblog - video game addiction stories ()

    ReplyDelete
  8. Anonymous10:45 PM

    Music streaming on the Internet is usually referred to as webcasting since it is not transmitted broadly through
    wireless means. The ads featured on the Internet
    radio website can inspire listeners to make a purchase through the website itself.
    There are sophisticated Wi-fi Internet radios available now, which are
    available complete with speakers, are portable and do not require
    a computer.

    My web site - Radio Portal - -

    ReplyDelete

Please add your comment here!