Skip to content

Instantly share code, notes, and snippets.

View AllanRPereira's full-sized avatar
:octocat:
Desenvolvendo novos projetos 💻

Állan Rocha Pereira AllanRPereira

:octocat:
Desenvolvendo novos projetos 💻
View GitHub Profile
@AllanRPereira
AllanRPereira / playlist_time.js
Last active March 30, 2019 00:35 — forked from fredericogg/playlist_time.js
Calcula o tempo total de uma playlist no Youtube. É só colar no console na página da playlist. Fiz esse script porque não achei o tempo total da playlist 😅.
(function() {
var timeSeconds = 0;
var timestampDivList = document.querySelectorAll("style-scope ytd-thumbnail-overlay-time-status-renderer");
for(var i = 0; i < timestampDivList.length; i++) {
var timestampDiv = timestampDivList[i];