? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Tuesday, August 2, 2011

Quickly Selecting all Contacts while Inviting Friends on Dropbox

If you ever try to invite all your friends to dropbox to get extra free space you know what you have to do. A lot of donkey work, checking all the hundreds of check-boxes.

Well now you can automatically be select all your friends.

Copy this line:
javascript: el = document.getElementById('contact-list').children; for(var i in el) { el[i].children[0].children[0].checked=true; }

And paste into browsers URL while the Invite Friends dialog is open and Hit enter.

If you want to know what's happening here's JS in easy to read format. Just figuring out the DOM a bit will give you a clue.

el = document.getElementById('contact-list').children;
for(var i in el)
{
    el[i].children[0].children[0].checked=true;
}

3 comments:

  1. great! Thanks!

    ReplyDelete
  2. It worked after some workaround. I had to install Firebug in firefox and then use the commandline to execute the script

    ReplyDelete
  3. No if you copy that line (javascript: el = document.getElementById('contact-list').children; for(var i in el) { el[i].children[0].children[0].checked=true; })

    you wont need firebug. Paste it in URL bar and hit enter, and why you needed workarounds?

    ReplyDelete