src/main.js
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;
}
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;
}
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 ; }
If there is only a single inline script on the page, return it; otherwise `null`
If there is only a single inline script on the page return it ; otherwise null