Created
January 7, 2014 06:05
-
-
Save ariofrio/8295235 to your computer and use it in GitHub Desktop.
Get the first two words of the names of all people in a Facebook Graph Search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var els = document.querySelectorAll("#browse_result_area [data-bt='{\"ct\":\"title\"}'] a"); | |
var ret = "" | |
for(var i=0; i<els.length; i++) { | |
ret += /\w+ \w+/.exec(els[i].textContent) + ","; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment