Closed nelsonic closed 6 years ago
var len = document.getElementsByClassName('index__clockIcon__3s3nE').length; // number of vids
var sum = 0;
for(var i = 0; i < len; i++){
var parts = document.getElementsByClassName('index__clockIcon__3s3nE')[0]
.nextElementSibling.innerHTML.split(":"); // time value is next DOM element to the clock icon.
var m = parseInt(parts[0], 10) * 60; // multiply the minute figure by 60 sec.
var s = parseInt(parts[1], 10);
sum = sum + m + s;
}
console.log(sum / 60); // we accumulated the time in seconds so divide by 60. ;-)
Note: you can alter the playback speed to 1.5 or even double speed. But I highly doubt a complete beginner is going to do that and still actually learn anything! 🙄
Fun fact - Egghead teaches about Development & Security & its own website isn't secure.
Anyone can download their videos for free using youtube-dl
youtube-dl https://egghead.io/courses/getting-started-with-redux
When I told them, there was no response 😞
@deadcoder0904 Yeah, I suspect they are making "enough" money to not care if people download. 🤔 (I downloaded the videos when I was learning so I could watch them offline ...)
Good on you for reporting it to them. 👍
Wow. Incredible that they didn't do anything.. but yeah, good on you for reporting it!
@nelsonic, it looks like they add the runtime for each course
I'm busy writing a post on how long it takes to learn React, Redux, Immutable.js, Flow etc. So, I need to know what the total running time is for the videos.
The duration of each video is shown next to the clock icon in the list of videos: https://egghead.io/lessons/javascript-redux-the-single-immutable-state-tree![image](https://user-images.githubusercontent.com/194400/30908329-32429062-a375-11e7-9763-8d0e85e7d945.png)
I could sit and manually add them up using mental arithmetic (or a calculator). But where's the fun in that?