code: function getLinks() {
      var links = [], alllinks, i = 0, length;
      alllinks = document.getElementsByTagName('a');
      length = alllinks.length;
      for (; i < length; i++) {
        if ((' ' + alllinks[i].className).indexOf(' jsbin-') !== -1) {
          links.push(alllinks[i]);
        }
      }
  
      return links;
    }
docs: 1. find all links with class=jsbin