Skip to content

Instantly share code, notes, and snippets.

@lasryaric
Created August 2, 2011 02:42
Show Gist options
  • Select an option

  • Save lasryaric/1119494 to your computer and use it in GitHub Desktop.

Select an option

Save lasryaric/1119494 to your computer and use it in GitHub Desktop.
Facebook events get users list
if (!all_list)
{
var all_list = [];
}
var pattern_search = '.fsl.fwb.fcb a';
var current_list = [];
var links = $$(pattern_search);
var value;
var i = 0;
while (i < links.length)
{
value = links[i].innerHTML;
if (all_list.indexOf(value) > -1)
{
i++;
continue;
}
all_list.push(value);
current_list.push(value);
i++;
}
alert(current_list.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment