Skip to content

Instantly share code, notes, and snippets.

server {
listen 80;
server_name CHANGEME.app; /*Alterar para nome do projeto */
root /var/www/vhosts/CHANGEME.app/public; /*Alterar para caminho do projeto */
index index.html index.htm index.php;
charset utf-8;
location / {
@lucasmarques73
lucasmarques73 / playlist_time.js
Created January 27, 2017 17:37 — 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(".timestamp");
for(var i = 0; i < timestampDivList.length; i++) {
var timestampDiv = timestampDivList[i];