Skip to content

Instantly share code, notes, and snippets.

@thlorenz
Last active August 29, 2015 14:26
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 thlorenz/82ee082ba2c43dec5ee8 to your computer and use it in GitHub Desktop.
Save thlorenz/82ee082ba2c43dec5ee8 to your computer and use it in GitHub Desktop.
Copy Netflix List sorted by title to Clipboard
  1. Go to My List
  2. Open DevTools
  3. Paste the below code into the console
  4. Hit Enter
  5. Your list is in your clipboard sorted by title
var cards = document.getElementsByClassName("smallTitleCard"), s = [], title;
for (var i = 0; i < cards.length; i++) {
  title = cards.item(i).attributes.getNamedItem('aria-label').textContent;
  if (!~s.indexOf(title)) s.push(title)
}
copy(s.sort().join('\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment