Skip to content

Instantly share code, notes, and snippets.

@kotarovivino
Last active August 29, 2022 08:29
Show Gist options
  • Save kotarovivino/8f3ccbdf5b68aba33da3ea8ed99e1cf4 to your computer and use it in GitHub Desktop.
Save kotarovivino/8f3ccbdf5b68aba33da3ea8ed99e1cf4 to your computer and use it in GitHub Desktop.
javascript:(function(){ const sum = Array.from(document.querySelectorAll('.dropdown-actor-title SPAN')).reduce((memo, span, index) => { if (index % 2 == 1) { return memo } let count = parseInt(span.title); if (isNaN(count)) { count = 0; } return memo + count; }, 0); console.log(sum);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment