Created
November 25, 2025 00:24
-
-
Save unrevised6419/4c85b9ab82b09b04f2f2371fc9a3b7d9 to your computer and use it in GitHub Desktop.
youtube queue total time
This file contains hidden or 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
| [...$0.children] | |
| .map(el => el.querySelector('.thumbnail-overlay-badge-shape.ytd-thumbnail-overlay-time-status-renderer').textContent) | |
| .map(time => time.split(':').reverse()) | |
| .map(([s = '0' , m = '0', h = '0']) => Number(s) + (Number(m) * 60) + (Number(h) * 3600)) | |
| .reduce((a, c) => a + c, 0)/3600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment