Skip to content

Instantly share code, notes, and snippets.

@davidsonfellipe
Created April 23, 2014 00:52
Show Gist options
  • Select an option

  • Save davidsonfellipe/11199413 to your computer and use it in GitHub Desktop.

Select an option

Save davidsonfellipe/11199413 to your computer and use it in GitHub Desktop.

Revisions

  1. davidsonfellipe created this gist Apr 23, 2014.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    // go to https://www.facebook.com/YOURPROFILE/friends

    var xx = document.querySelectorAll('.fsl.fwb.fcb a')

    for (var i = 0; i<xx.length; i++){

    if(xx[i].href === 'https://www.facebook.com/YOURPROFILE/friends#') {

    console.log(xx[i].innerHTML);

    }

    }