Skip to content

Instantly share code, notes, and snippets.

@codeforkjeff
Created October 10, 2019 07:29
Show Gist options
  • Save codeforkjeff/c3447a9a7d227eb602a2cbeb6bfefc91 to your computer and use it in GitHub Desktop.
Save codeforkjeff/c3447a9a7d227eb602a2cbeb6bfefc91 to your computer and use it in GitHub Desktop.
vimeo transcript
// run this in the javascript console, hit play on the vimeo video.
// when it's finished playing, the entire transcript should be in the "transcript" variable
var transcript = "";
var lastCaption = "";
function appendCaption() {
var cap = $(".vp-captions").text();
if(cap != lastCaption) {
transcript += " " + lastCaption;
}
lastCaption = cap;
setTimeout(appendCaption, 300);
}
appendCaption();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment