Tavis Ormandy <
tav...@gmail.com> wrote:
> On 2023-03-06, Ant wrote:
> >
https://www.youtube.com/playlist?list=PLMX26aiIvX5oCR4bBg2j0W4KKgjYtYBfv
> > -- I just want to know its exact total time.
> >
> > Thank you for reading and hopefully answering soon. :)
> I don't know, but I would just use devtools.
> Here is how I would do it (only tested with Chrome), but press F12 on
> that page and then type this into the console:
> $$('ytd-thumbnail-overlay-time-status-renderer').
> map(a => a.innerText.split(':').reverse()).
> map(a => parseInt(a[0]) + parseInt(a[1]) * 60 + parseInt(a[2]??0) * 3600).
> reduce((n,a) => n + a, 0) / 60 / 60
> That's the runtime in hours (22.6), or remove the last '/ 60' to get minutes.
> The $$() is a shorthand to query elements, then just extracting the
> time and converting to seconds.
> Tavis.
"My mouth is filled with your praise, declaring your splendor all day long." --Psalm 71:8. Slammy times with heavy rain with leaks, gatherings, March madnesses, long commutes, offline, etc. :(