Skip to content

Instantly share code, notes, and snippets.

View mkpolkowski's full-sized avatar

Mateusz Polkowski mkpolkowski

  • Warsaw
View GitHub Profile
@mkpolkowski
mkpolkowski / CountYoutubeVideosTime.js
Last active April 2, 2024 14:51 — forked from RafalJDev/CountYoutubeVideosTime.js
Count all videos time duration on youtube channel
//You need to run this in javascript console inside chrome
//Assumptions:
//1. Will count only "expanded" videos on page, you may first need to run script to scroll to last video or do it manually
//2. Tested on chrome, ubuntu, 2019
//3. Time format: hh:mm:ss
// Assuming you have your domlists as an array-like object
const domlists = document.querySelectorAll("ytd-rich-item-renderer");