Created
June 17, 2014 04:55
-
-
Save emorikawa/1471760df106ce27a0e1 to your computer and use it in GitHub Desktop.
Pinterest Followers Sorted by Followers
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
// For http://www.pinterest.com/USERNAME/following/ | |
// I want to find who the big-names are on Pinterest. They currently don't provide a good way to do that. | |
fcount = function(el){return parseInt(el.innerHTML.replace(/,/g,"").match(/(\d+) Followers/)[1])} | |
sorted = $("p.userStats").sort(function(a,b){return fcount(b) - fcount(a)}) | |
i = 1; console.log(fcount(sorted[i])); sorted[i].scrollIntoView(true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment