Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created June 9, 2011 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kopiro/1016567 to your computer and use it in GitHub Desktop.
Save kopiro/1016567 to your computer and use it in GitHub Desktop.
Select all friends in a event Facebook page (Async)
javascript:
var _f = document.getElementsByName("checkableitems[]");
var _i = 0;
var _t = setInterval(function(){
if (_i>=_f.length) clearInterval(_t);
try { _f[_i++].click() }
catch (e) { console.dir(e); }
}, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment