While I was browsing today my timeline, I noticed some re-tweets of people who had annoyingly blinky avatars. I guess Twitter missed the old days, when browsing the web could give you an epileptic seizure. Since people tend to get excited with stupid ideas, I took the time to write a little GreaseMonkey script for Twitter, which substitutes GIF avatars with the Twitter’s default avatar (an egg or something). So now when the blinky pink “Hello, Kitty” apocalypse comes, I’ll be prepared.

You can grab the script from here.

/*
A little GreaseMonkey script for Twitter, which replaces GIF avatars
with the Twitter's default avatar in your timeline.

Karagasidis Dimitris, http://gatoni.gr
*/

// ==UserScript==
// @nameΒ Β Β Β Β Β Β Β Β  Twitter GIF Avatar Blocker
// @namespaceΒ Β Β Β  http://gatoni.gr
// @descriptionΒ Β  A script which substitutes GIF avatars with the Twitter's default avatar
// @includeΒ Β Β Β Β Β  http://twitter.com/*
// ==/UserScript==

function eliminate_gifs() {
    var avatars = document.getElementsByTagName("img");
    for ( var i in avatars ) {
        // Check if the image is an avatar in the timeline
        if ( avatars[i].className == "user-profile-link" || avatars[i].className == "photo fn" ) {
            // Substitute the animated avatar with the Twitter's default avatar
            if ( avatars[i].src.substr(-3).toLowerCase() == "gif" ) {
                avatars[i].src = "http://a1.twimg.com/sticky/default_profile_images/default_profile_0_normal.png";
            };
         };
    };
};
eliminate_gifs();
setInterval( eliminate_gifs, 3000 );