FFmpeg bookmarklets

# Introduction

The scripts in this page are bookmarklets: store their link version in a bookmark, and later activate the bookmark on a page to run the script.

# TED Talks captions

Get links to the captions

    d = window.open("", "sub", "width=256,height=512,resizable=yes,scrollbars=yes").document;
    l = document.getElementById("languageCode").getElementsByTagName("option");
    for (i = 1; i < l.length ; i++) {
      d.body.appendChild(p = d.createElement("p"));
      p.appendChild(a = d.createElement("a"));
      a.appendChild(d.createTextNode(l[i].textContent));
      a.href="http://www.ted.com/talks/subtitles/id/" + talkID+"/lang/" + l[i].value;
    }