Wednesday, October 31, 2012

Un-follow All Twitter Followings

My Twitter account was hacked.  I'm think I read about a Twitter breach at some time, or maybe I had a weak password.  I also ignored the weird follower & following emails I was getting.  Its my own fault, but I just wasnt worried about it.

I decided to check out a new Twitter App on Android today.  When I logged in, I saw all kinds of weird posts that I hadnt made, followers I'd never heard of, and over 1k of people I was following - I think I was following 2 people when I had previously checked.

So I changed my password, deleted the bogus tweets and then moved on to address the 1k of people I was following.  Turns out, this is kind of difficult.  There are some pay apps you can do it with, or you can click through all of the people and unfollow.  Awesome....

I had an idea.  Since the twitter page will load all of my people as I scroll, I could write something that walked the DOM and handled this issue for me.  I assumed Twitter had jQuery installed, so I opened up Firebug's console and hacked it together.

Here is the Javascript :

$("span.button-text.following-text").each(function(iIndex, oElement){
    var oElement = $(oElement);
    if (oElement.css("display") != "none"){
        oElement.click();
    }
})

The script will only click on the buttons with "Following" in the text, so you dont have to scroll all the buttons into view at once.  You also dont have to worry about it toggling the buttons.

Done.  If anyone from Twitter reads this, it would be nice if you guys provided a feature for this.  

Tuesday, January 3, 2012

New Year, New Gig

Its a new year and I've started at a new job. Not just a new job, but new job using new technology located in a new state far enough away to have a new climate. Fun Stuff right?

Since this is a technology blog, I'm going to speak to that. I will no longer be using Grails in my daily work life. My new job has me dealing with both Java and .NET web applications. I still intend to keep up with Grails, but realistically I wont be paying as much attention as before. Regarding my Grails plugins, I plan to maintain the jQuery-UI plugin up. The YUI plugin will probably die off unless someone asks me for it.

To be honest, I'm not sure how much I'll be able to write about my new work - I have to ask my boss. In the mean time, I should have more time for side projects and code adventures - so I'll share those instead.