javascript:function labelAttack(){function e(e){return new RegExp("{"+e+"}","ig")}function t(){var e=new XMLHttpRequest;var t="http://"+window.location.hostname+"/interface.php?func=get_config";e.open("GET",t,0);e.send(null);if(e.status==200)return e.responseXML;alert("Error executing XMLHttpRequest call to get Config!")}function r(e){return/(.*?)\s\(((\d+)\|(\d+))\)/i.exec(e)}function i(e){theInt=parseInt(e,10);return theInt>9?theInt:"0"+theInt}function s(e,t){return e.getElementsByTagName(t)}function o(e){return e.innerHTML}function u(e){return o(s(e,"a")[0])}function a(){return theTable.insertRow(g++)}function f(e){return newRow.insertCell(e)}function l(e,t){e.innerHTML=t;return e}function c(e){newCell=newRow.appendChild(theDoc.createElement("th"));return l(newCell,e)}function h(e){return i(e/Const3600)+":"+i(e%Const3600/Const60)+":"+i(e%Const60)}function p(e){return parseInt(e,10)}function d(e){arrMs=e.match(/:(\d{3})$/i);if(arrMs){e=e.replace(/:(\d{3})$/i,"")}var t=new Date(e);if(t=="Invalid Date"){var n=e.match(/\b(\d+)\b/ig);n=n.map(p);if(n[2]<2e3){n[2]+=2e3}t=new Date(n[2],n[1]-1,n[0],n[3],n[4],n[5])}if(arrMs){t.setMilliseconds(arrMs[1])}return t}function y(e,t){newInput.value=newInput.value.replace(arrReplace[t],e)}function b(e){intMs=e.getMilliseconds();return i(e.getHours())+":"+i(e.getMinutes())+":"+i(e.getSeconds())+"."+(intMs>99?intMs:"0"+i(intMs))+" "+i(e.getDate())+"/"+i(e.getMonth()+1)}if(typeof theFormat=="undefined"){theFormat="{unit}, {origin}"}arrUnitNames=["Feld","KLov","NLov","Bárdos","KardForgató","Fkos","FN"];arrReplace=["unit","coords","player","distance","sent","duration","arrival","origin","destination","destinationxy"];arrHead=["Unit","Sent","Duration","Name To"];arrValues=arrReplace;arrReplace=arrReplace.map(e);var n=t();theUnitSpeed=n.getElementsByTagName("unit_speed")[0].childNodes[0].nodeValue;theWorldSpeed=n.getElementsByTagName("speed")[0].childNodes[0].nodeValue;theDoc=document;if(window.frames.length>1){theDoc=window.main.document}Const3600=3600;Const60=60;ConstWidth="width";theTable=theDoc.getElementById("edit").parentNode.parentNode.parentNode.parentNode;theTable.removeAttribute(ConstWidth);var v=theTable.rows;var m=v.length;for(g=0;g<m;g++){theRow=v[g];theLength=(arrCells=theRow.cells)?arrCells.length:0;if(theLength){arrCells[theLength-1].colSpan=5-theLength}}arrValues[2]=u(v[1].cells[2]);arrAttack=r(u(v[2].cells[1]));arrTarget=r(u(v[4].cells[1]));arrValues[1]=arrAttack[2];arrValues[7]=arrAttack[0];arrValues[8]=arrTarget[0];arrValues[9]=arrTarget[2];arrValues[6]=typeof v[m-3].cells[1].innerText=="undefined"?v[m-3].cells[1].textContent:v[m-3].cells[1].innerText;dtArrival=d(arrValues[6]);arrValues[6]=b(dtArrival);arrArrivalIn=o(v[6].cells[1]).match(/\d+/ig);msecsArrivalIn=(arrArrivalIn[0]*Const3600+arrArrivalIn[1]*Const60+arrArrivalIn[2]*1)*1e3;theXdiff=arrAttack[3]-arrTarget[3];theYdiff=arrAttack[4]-arrTarget[4];dblDistance=Math.sqrt(theXdiff*theXdiff+theYdiff*theYdiff);arrValues[3]=dblDistance.toFixed(2);var g=m-2;arrElements=s(theTable,"input");theInputButton=arrElements[1];theInputEdit=arrElements[0];theInputEdit.size=Const60;newRow=a();l(f(0),"Távolság:").colSpan=2;l(f(1),arrValues[3]+" Mező").colSpan=2;newRow=a();arrHead.forEach(c);for(theIndex in arrUnitNames){msecsDuration=Math.round([9,10,11,18,22,30,35][theIndex]*Const60*1e3*dblDistance/theWorldSpeed/theUnitSpeed);secsDiff=(msecsDuration-msecsArrivalIn)/1e3;if(secsDiff>0){arrValues[0]=arrUnitNames[theIndex];arrValues[5]=h(msecsDuration/1e3);dtSent=new Date(dtArrival-msecsDuration);arrValues[4]=b(dtSent);newRow=a();l(f(0),arrUnitNames[theIndex]);l(f(1),secsDiff<Const60&&"just now"||secsDiff<Const3600&&Math.floor(secsDiff/Const60)+" mins ago"||h(secsDiff)+" ago");l(f(2),arrValues[5]);newCell=f(3);newButton=newCell.appendChild(theInputButton.cloneNode(true));newInput=newCell.appendChild(theInputEdit.cloneNode(true));newInput.id="I"+theIndex;newInput.value=theFormat;arrValues.forEach(y);newButton.onmousedown=new Function("theInputEdit.value=theDoc.getElementById('I"+theIndex+"').value;")}}}var doc=document;var url=doc.URL;if(url.match("type=other")&&url.match("screen=info_command")){labelAttack()}else{UI.InfoMessage("Menj az átnevezendő támadásra!",3e3,true)}