Archive for January, 2011

Unfollow everyone on formspring

I’ve been creating accounts on various social networking sites lately for a project we’re working on, and I somehow managed to bulk-follow over a thousand people on formspring.me with their “find friends” tool. Like seriously, I was following hundreds of Asian teenagers — no idea how that happened.

No worries though, I just fired up jash and jquerify (a no-conflict version, since formspring.me uses prototype, which jquery doesn’t always play nice with) to bulk unfollow all of them.

Once you get jquerify and jash up, just put this bad boy in jash, and you’re good to go:

$jq.each($jq(".unfollow"), function() {
	var str = this.id.split('-');
	fspring.unfollow(str[1],this,'People-View');
});
Unfollow all on Formspring - screenshot

Unfollow all on Formspring

Be prepared to wait!!

Zend_Form_Element_Hidden not really hidden

The point of having a hidden field is that it is truly hidden, and doesn’t require labels / etc. Unfortunately, Zend_Form_Element_Hidden doesn’t really recognise this. Here’s how to subclass it and get rid of that stuff so you can create an input that is hidden for real:

class M_Form_Element_Hidden extends Zend_Form_Element_Hidden {
   public function init() {
      $this->setDisableLoadDefaultDecorators(true);
      $this->addDecorator('ViewHelper');
      $this->removeDecorator('DtDdWrapper');
      $this->removeDecorator('HtmlTag');
      $this->removeDecorator('Label');
      return parent::init();
   }
}