Skip to content

Instantly share code, notes, and snippets.

@emorikawa
Created June 17, 2014 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emorikawa/1471760df106ce27a0e1 to your computer and use it in GitHub Desktop.
Save emorikawa/1471760df106ce27a0e1 to your computer and use it in GitHub Desktop.
Pinterest Followers Sorted by Followers
// 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