Calculate the duration of a playlist and display it next to the number of videos. Also detects and displays video playback speed.
< Feedback on Youtube Playlist Duration Calculator (Forked)
Hey, can you check If this is working for you right now? I added the line but still not fixes the issue.
Yes, but that only fixes one case.
There's three separate cases:
1) Duration no longer appearing on watch?v=...&list=... pages for non-queue playlists (above fix works)
2) Duration no longer appearing on the playlist?list=... pages (this used to work until somewhat recently)
3) Duration not appearing on watch?v=...&list=... for queue playlists (this has never worked)
(2) has simple fix: replace all instances of "view-model-wiz" with "view-model" including both selectors and injected span classes.
Note that this only works the playlist header is off to the side (wide view) rather than at the top (narrow view), but I think this script has always worked this way. It's possible to fix this too, but would require more substantial changes than quick replaces.
(3) would require a rework, since the queue playlist can pop up whenever a user hits "add to queue", so it would require a persistent MutationObserver and tracking whether duration was already added.
(2) Worked for me. Thanks
Heya, there's a bug that's currently making this not work for me. Might be due to a youtube experiment/change or some other other userscript/extension. But in any case, I've fixed the script locally so it works for me.
In appendDurationToPlaylistHeader's first line, change:
document.querySelectorAll('div#publisher-container')[2]
to
document.querySelector('#content div#publisher-container')