↓ Twitter is updated more often, so read it! ↓

Selecting all friends in a Facebook select friends dialog

Let’s say you’re on an event page on Facebook and you want to select all of your friends. Click on “Invite People to Come” and you’ll see the friend selection dialog pop up. Once it’s up, copy and paste this little Javascript gem into the URL bar of your browser:


javascript:e=document.getElementById('friends').getElementsByTagName('li');for(var f in e){if(typeof e[f] === 'object'){fs.click(e[f]);}}

This will select everyone. Be warned, though, that if you computer is slow or you have a lot of friends, it could take a while. It took about a second on my MacBook Pro with a 2.53 GHz Core2Duo.

One Comment

  1. Twitted by colindean:

    [...] This post was Twitted by colindean [...]

Leave a comment