Last active
August 29, 2022 08:29
-
-
Save kotarovivino/8f3ccbdf5b68aba33da3ea8ed99e1cf4 to your computer and use it in GitHub Desktop.
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
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