Prośba o naprawę skryptu do zapisywania czatu

Jak korzystać z portalu? Problemy dotyczące forum? Napisz tutaj co Ci sprawia trudność.
Regulamin forum
Aby brać udział w konkursach należy dodawać linki do profili i transmisji w postach o naszych Dziewczynach z ShowUp.tv


Czy ktoś potrafiłby naprawić ten skrypt do zapisu czata bo na nowej stronie SU już nie działa.

Kod: Zaznacz cały
javascript:!function(){function t(t){return 10>t?"0"+t:t}function e(t){var e=""+t;return e.length<3&&(e="0"+e),e.length<3&&(e="0"+e),e}"undefined"==typeof _chat&&(Date.prototype.timeDialog=function(){return t(this.getUTCHours())+":"+t(this.getMinutes())+":"+t(this.getSeconds())+","+e(this.getMilliseconds())},Date.prototype.timeFull=function(){return""+this.getFullYear()+t(this.getMonth()+1)+t(this.getDate())+t(this.getHours())+t(this.getMinutes())},Date.prototype.timeChat=function(){return t(this.getHours())+":"+t(this.getMinutes())+":"+t(this.getSeconds())},Date.prototype.timeFullHumane=function(){return""+this.getFullYear()+"-"+t(this.getMonth()+1)+"-"+t(this.getDate())+" "+this.timeChat()},window._chat={count:0,c_rmv_msg:0,goal:!1,s_goal:"",c_settings:-1,c_descript:-1,s_descript:"",startTime:new Date,msg:[],divInfo:null,btn:null,btn2:null,txtTime:function(t){return t.getTime()==this.startTime.getTime()?"\t\t\t":t.timeChat()+"\t"},SubRipTime:function(t,e){var s=new Date(t.getTime()-this.startTime.getTime()),a=new Date(s.getTime()+4e3);return e+"<br>"+s.timeDialog()+" --> "+a.timeDialog()+"<br>"},updateInfo:function(t){switch(t){case"message":this.count++;break;case"del_mes":this.c_rmv_msg++;break;case"goal":this.c_settings++;break;case"description":this.c_descript++}this.divInfo.innerHTML=this.count+" wypowiedzi",this.c_rmv_msg>0&&(this.divInfo.innerHTML+="<br>"+this.c_rmv_msg+" usuniętych wypowiedzi"),this.c_settings>0&&(this.divInfo.innerHTML+="<br>"+this.c_settings+" razy zmieniono cel"),this.c_descript>0&&(this.divInfo.innerHTML+="<br>"+this.c_descript+" razy zmieniono opis")},init:function(){var t=document.querySelector(".filter-tabs"),e=t.parentNode.insertBefore(document.createElement("div"),t);this.btn=e.appendChild(document.createElement("a")),this.btn.textContent="Zapisz chat",this.btn.id="txt",this.btn.download="txt.txt",e.innerHTML+=", ",this.btn2=e.appendChild(document.createElement("a")),this.btn2.textContent="Zapisz jako napisy",this.btn2.id="srt",this.btn.download="srt.srt",e.innerHTML+="<br><br>Zliczanie rozpoczęto o "+this.startTime.timeChat()+"<br>",this.divInfo=e.appendChild(document.createElement("div"));var s=document.querySelector("#chatView");if(s.children.length>0)for(var a=0;a<s.children.length;a++)s.children[a].attributes.login?(_chat.msg[_chat.msg.length]=[G_T_MESSAGE,s.children[a].attributes.uid.value,s.children[a].attributes.login.value,s.children[a].querySelector(".message").textContent,_chat.startTime],_chat.updateInfo("message")):s.children[a].attributes["class"]&&-1!=s.children[a].attributes["class"].value.indexOf("tipInfo")&&(_chat.msg[_chat.msg.length]=[G_T_TIP,null,s.children[a].textContent.match(/^\w+/)[0],s.children[a].textContent.match(/\d+/)[0],_chat.startTime]);this.s_descript=document.querySelector("#description").textContent.trim(),this.msg[_chat.msg.length]=[G_T_UPDATE_DESCRIPTION,this.s_descript,null,null,this.startTime],this.updateInfo("description"),this.s_goal=document.querySelector(".transmission-goal").textContent,this.msg[_chat.msg.length]=[G_Z_SETTINGS,this.s_goal.trim()?"true":"false",this.s_goal,transmission.aimTokens,this.startTime,transmission.currTokens],this.goal=parseInt(transmission.currTokens,10)>parseInt(transmission.aimTokens,10)?!1:!0,this.updateInfo("goal")}},_chat.init(),document.querySelector("#txt").addEventListener("click",function(){for(var t=transmission.transUser.login+" - "+_chat.startTime.timeFullHumane()+"\r\n\r\n",e=0;e<_chat.msg.length;e++)switch(_chat.msg[e][0]){case G_T_MESSAGE:t+=_chat.txtTime(_chat.msg[e][4])+(_chat.msg[e][2]==transmission.transUser.login?"*"+_chat.msg[e][2]+"*: ":_chat.msg[e][2]+": ")+_chat.msg[e][3]+"\r\n";break;case G_T_TIP:t+=_chat.txtTime(_chat.msg[e][4])+_chat.msg[e][1]+" podarował "+_chat.msg[e][2]+" żetonów\r\n";break;case G_T_UPDATE_DESCRIPTION:t+=_chat.txtTime(_chat.msg[e][4])+(""!=_chat.msg[e][1]?"OPIS: "+_chat.msg[e][1]:"BRAK OPISU")+"\r\n";break;case G_Z_SETTINGS:t+=_chat.txtTime(_chat.msg[e][4])+("true"==_chat.msg[e][1]?"CEL: "+_chat.msg[e][3]+" żetonów (STAN: "+_chat.msg[e][5]+"); "+_chat.msg[e][2]:"BRAK CELU")+"\r\n";break;case 851:t+=_chat.txtTime(_chat.msg[e][4])+_chat.msg[e][5]+"\r\n"}var s=document.createElement("div");s.innerHTML=t.replace(/\r\n/g,"<br>"),document.querySelector("#txt").href=URL.createObjectURL(new Blob([s.innerHTML.replace(/<br>/g,"\r\n").replace(/&gt;/g,">")],{type:"text/plain;charset=utf-8"})),document.querySelector("#txt").download=transmission.transUser.login+"_"+_chat.startTime.timeFull()+"_"+(new Date).timeFull()+".txt"},!1),document.querySelector("#srt").addEventListener("click",function(){for(var s=_chat.SubRipTime(_chat.startTime,1)+_chat.startTime.timeFullHumane()+","+e(_chat.startTime.getMilliseconds())+"<br><br>",a=0;a<_chat.msg.length;a++)switch(_chat.msg[a][0]){case G_T_MESSAGE:s+=_chat.SubRipTime(_chat.msg[a][4],a+2)+"<b>"+(_chat.msg[a][2]==transmission.transUser.login?'<font color="#EE009E">'+_chat.msg[a][2]+":</font>":_chat.msg[a][2]+":")+"</b> "+_chat.msg[a][3]+"<br><br>";break;case G_T_TIP:s+=_chat.SubRipTime(_chat.msg[a][4],a+2)+'<b><font color="#FFFF00">'+_chat.msg[a][1]+" podarował "+_chat.msg[a][2]+" żetonów</font></b><br><br>";break;case G_T_UPDATE_DESCRIPTION:s+=_chat.SubRipTime(_chat.msg[a][4],a+2)+'<b><font color="#FFFF00">'+(""!=_chat.msg[a][1]?"OPIS: "+_chat.msg[a][1]:"BRAK OPISU")+"</font></b><br><br>";break;case G_Z_SETTINGS:s+=_chat.SubRipTime(_chat.msg[a][4],a+2)+'<b><font color="#FFFF00">'+("true"==_chat.msg[a][1]?"CEL: "+_chat.msg[a][3]+" żetonów (STAN: "+_chat.msg[a][5]+"); "+_chat.msg[a][2]:"BRAK CELU")+"</font></b><br><br>";break;case 851:s+=_chat.SubRipTime(_chat.msg[a][4],a+2)+'<b><font color="#FFFF00">'+_chat.msg[a][5]+"</font></b><br><br>"}var n=document.createElement("div");n.innerHTML=s.replace(/\r\n/g,"<br>"),document.querySelector("#srt").href=URL.createObjectURL(new Blob([n.innerHTML.replace(/<br>/g,"\r\n").replace(/&gt;/g,">")],{type:"text/plain;charset=utf-8"})),document.querySelector("#srt").download=transmission.transUser.login+"_"+_chat.startTime.timeFull()+t(_chat.startTime.getSeconds())+","+e(_chat.startTime.getMilliseconds())+"_"+(new Date).timeFull()+".srt"},!1),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_MESSAGE,function(t){_chat.msg[_chat.msg.length]=[G_T_MESSAGE,t.msg[0],t.msg[1],t.msg[2],new Date],_chat.updateInfo("message")}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_TIP,function(t){_chat.msg[_chat.msg.length]=[G_T_TIP,t.msg[0],t.msg[1],t.msg[2],new Date],_chat.goal&&t.msg[2]>=parseInt(transmission.aimTokens,10)&&(_chat.msg[_chat.msg.length]=[851,t.msg[0],t.msg[1],t.msg[2],new Date,"CEL ZREALIZOWANO ("+t.msg[2]+"/"+transmission.aimTokens+"): "+document.querySelector(".transmission-goal").textContent],_chat.goal=!1)}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_UPDATE_DESCRIPTION,function(t){(-1==_chat.c_descript||-1==_chat.s_descript.indexOf(t.msg[0]))&&(_chat.s_descript=t.msg[0],_chat.msg[_chat.msg.length]=[G_T_UPDATE_DESCRIPTION,t.msg[0],t.msg[1],t.msg[2],new Date],_chat.updateInfo("description"))}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_Z_SETTINGS,function(t){(-1==_chat.c_settings||-1==_chat.s_goal.indexOf(t.msg[1]))&&(_chat.s_goal=t.msg[1],_chat.msg[_chat.msg.length]=[G_Z_SETTINGS,t.msg[0],t.msg[1],t.msg[2],new Date,transmission.currTokens],_chat.goal=parseInt(transmission.currTokens,10)>t.msg[2]?!1:!0,_chat.updateInfo("goal"))}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_DEL_MES,function(t){for(var e=transmission.maxMessages,s=_chat.msg.length-1;e>0&&s>=0;s--)_chat.msg[s][0]==G_T_MESSAGE&&(e--,_chat.msg[s][2]==t.msg[0]&&(_chat.msg[s][2]="USUNIĘTY: "+_chat.msg[s][2],_chat.updateInfo("del_mes")))}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_W_PRV_INFO,function(t){var e=t.msg[0].split("[:]"),s=e[0],a=e[1],n=e[2];"running"==n?_chat.msg[_chat.msg.length]=[851,e[0],e[1],e[2],new Date,"PRIV: "+secondsToTime(s)]:"finished"==n?_chat.msg[_chat.msg.length]=[851,e[0],e[1],e[2],new Date,"ZAKOŃCZONO PRIV: "+secondsToTime(a)]:"stopped"==n&&(_chat.msg[_chat.msg.length]=[851,e[0],e[1],e[2],new Date,"PRIV PRZERWANO: "+secondsToTime(a)])}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_STREAM_STATUS,function(t){_chat.msg[_chat.msg.length]=[851,data[0],data[1],data[2],new Date,"true"==t.msg[0]?"ROZPOCZĘTO STREAM!":"BRAK STREAMU!"]}),addPackageListener(packetController.EVT_NEW_PACKAGE,G_T_TERMINATED,function(){_chat.msg[_chat.msg.length]=[851,data[0],data[1],data[2],new Date,"TRANSMITUJĄCY OPUŚCIŁ TRANSMISJĘ!"]}))}();void(0);
Awatar użytkownika
parch
SU-ciekawy
SU-ciekawy
Posty: 2
Rejestracja: 07 lip 2019, 12:27
Podziękował: 1 razy
Podziękowano mu: 0 razy
Co masz w Majtkach?: Dick
Twoja ulubienica z SU: ShowUp
Anal?: Nie
Nick na ShowUp.tv:





Nie było jakoś wybitnie testowane przeze mnie... ale działa.

Tutaj jest inna wersja, zrobiona dawno temu już...
Legginsomaniak, fan lodzików i nie jestem hakerem, wybijcie sobie to z głowy ;x
Voldemort Szołapka :sarcastic_blum:
AllMyLinks = wszystkie linki w jednym miejscu
Awatar użytkownika
Fapka
Night's Watch
Night's Watch
Posty: 1478
Rejestracja: 04 mar 2017, 11:09
Lokalizacja: śląskie
Podziękował: 102 razy
Podziękowano mu: 173 razy
Co masz w Majtkach?: Dick
Twoja ulubienica z SU: VeronikaVirt
Anal?: Nie
Nick na ShowUp.tv: Fappi i niepubliczne




Dziękuję bardzo :)
Awatar użytkownika
parch
SU-ciekawy
SU-ciekawy
Posty: 2
Rejestracja: 07 lip 2019, 12:27
Podziękował: 1 razy
Podziękowano mu: 0 razy
Co masz w Majtkach?: Dick
Twoja ulubienica z SU: ShowUp
Anal?: Nie
Nick na ShowUp.tv:



  • Podobne tematy
    Odpowiedzi
    Odsłony
    Ostatni post

Wróć do Dział Techniczny



Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 28 gości