code: function getScriptFromUrl(url, eligibleScripts) {
    var i,
        script = null;
  
    eligibleScripts = eligibleScripts || scripts;
  
    if (typeof url === "string" && url) {
      for (i = eligibleScripts.length; i--; ) {
        if (eligibleScripts[i].src === url) {
          // NOTE: Could check if the same script URL is used by more than one `script` element
          // here... but let's not. That would yield less useful results in "loose" detection. ;)
          script = eligibleScripts[i];
          break;
        }
      }
    }
    return script;
  }
docs: Get script object based on the `src` URL