code: function getSoleInlineScript(eligibleScripts) {
    var i, len,
        script = null;
    eligibleScripts = eligibleScripts || scripts;
    for (i = 0, len = eligibleScripts.length; i < len; i++) {
      if (!eligibleScripts[i].hasAttribute("src")) {
        if (script) {
          script = null;
          break;
        }
        script = eligibleScripts[i];
      }
    }
    return script;
  }
docs: If there is only a single inline script on the page, return it; otherwise `null`