(function(){ const d = document.querySelector('iframe').contentDocument; const h=d.querySelector('input[name=hostname]'), k=d.querySelector('textarea[name=sshKey]'), p=d.querySelector('textarea[name=postInstallationScript]'); const errs=[...d.querySelectorAll('.oui-field__error, .error, [class*=error]')].map(e=>e.textContent.trim()).filter(Boolean).slice(0,10); const val=[...d.querySelectorAll('button')].filter(e=>e.textContent.trim()==='Valider' && e.offsetParent!==null).map(e=>'disabled='+e.disabled); return JSON.stringify({hostname:h.value, key:k.value.slice(0,40), scriptLen:p.value.length, scriptHead:p.value.slice(0,60), errs, val}); })()