Skip to content

Instantly share code, notes, and snippets.

@ShaneQful
Created March 29, 2013 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShaneQful/5267823 to your computer and use it in GitHub Desktop.
Save ShaneQful/5267823 to your computer and use it in GitHub Desktop.
Grabs YouTube captions and outputs text for however many lines you want. Wrote it to translate Italian news with my sister in it.
for(var i = 0; i < 12; i++){
console.log($('#cp-'+i).innerText.replace(/\d:\d+/, ''));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment