Created
April 7, 2012 15:25
-
-
Save sergray/2329714 to your computer and use it in GitHub Desktop.
Returns the full transcript of TED talk (copy&paste snippet to developer's console on page with TED talk)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var transcript = ""; | |
$('#transcriptText p').each(function(i, para) { | |
if(i > 0) transcript += "\n"; | |
$('.transcriptLink', para).each(function(j, link) { | |
if(j > 0) transcript += " "; | |
transcript += link.text; | |
}); | |
}); | |
return transcript; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment