Skip to content

Instantly share code, notes, and snippets.

View joismar's full-sized avatar

Joismar Braga joismar

View GitHub Profile
@joismar
joismar / playlist_time.js
Last active November 30, 2017 01:58 — forked from cesarhilario/playlist_time.js
Calcula o tempo total de uma playlist no Youtube. É só colar no console na página da playlist. Update para a nova interface do Youtube
(function() {
if (document.getElementsByClassName('ytd-playlist-video-list-renderer') != "undefined") {
var playlist = document.querySelector("ytd-playlist-video-list-renderer");
}
else {
var playlist = document.querySelector("ytd-playlist-panel-renderer");
}
var timeSeconds = 0,