Skip to content

Instantly share code, notes, and snippets.

@nbluis
Created July 12, 2017 22:33
Show Gist options
  • Select an option

  • Save nbluis/cfc4231e5ea26d0032fb05346cf3681f to your computer and use it in GitHub Desktop.

Select an option

Save nbluis/cfc4231e5ea26d0032fb05346cf3681f to your computer and use it in GitHub Desktop.
Array.from(document.querySelectorAll('.markdown-body li a'))
.map((el) => el.textContent.match(/.*\★(\d+)$/))
.filter((match) => match)
.filter((match) => parseInt(match[1]) > 500)
.sort((m1, m2) => parseInt(m2[1]) - parseInt(m1[1]))
.map((match) => match[0])
.forEach((entry) => console.log(entry));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment