Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am anjosc on github.
  • I am anjosc (https://keybase.io/anjosc) on keybase.
  • I have a public key ASCyLrTS3jyGXm7NAxw79SYQZyXuwdL1CWvXAzAwBTHU0wo

To claim this, I am signing this object:

@anjosc
anjosc / youtubePlaylistSize.js
Created April 3, 2015 04:00
Adds the time in a youtube playlist
timestamps = document.querySelectorAll("td.pl-video-time > div > div.timestamp > span")
var total = 0
for (i=0; i < timestamps.length; i++){
var times = timestamps[i].innerHTML.split(":")
for(j = 0 ; j < times.length ; j++){
z = times.length - j - 1
total += parseInt(times[z]) * Math.pow(60,j)
}
}