Skip to content

Instantly share code, notes, and snippets.

@liddiard
Last active April 18, 2017 21:47
Show Gist options
  • Save liddiard/55b502f007a86dcf55985aefb2608b37 to your computer and use it in GitHub Desktop.
Save liddiard/55b502f007a86dcf55985aefb2608b37 to your computer and use it in GitHub Desktop.
One-liner to get a sorted, newline-separated list of people from a Facebook modal.
Array.from(document.querySelectorAll('.fsl.fwb.fcb > a')).map(link => link.text).sort().join('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment