zyxel-7302-luca-rev2.js-v Copy Copiato!
javascript:ftb();function dxc(t,e,n){var a=CryptoJS.enc.Base64.parse(n),i=CryptoJS.enc.Base64.parse(e);return CryptoJS.AES.decrypt(t,i,{iv:a,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString(CryptoJS.enc.Utf8)}function adj(b,d,u){return t="",b.length>0&&(t='<span style="color:#e07a5f;">'+b+"</span>"),t+="("+d+"MHz",u&&(t+="/"+u+"MHz"),t+=")",t}function getStatus(){boxcar=gw/(gt+1),$.ajax({type:"GET",url:"/cgi-bin/DAL?oid=cellwan_status",dataType:"json",success:function(s){try{var e=dxc(s.content,localStorage.AesKey,s.iv);v=JSON.parse(e),b=!0,signal=v.Object[0]}catch(e){signal=s.Object[0]}for(vars=["NSA_PCI","NSA_RFCN","NSA_Band","NSA_RSSI","NSA_RSRP","NSA_RSRQ","NSA_SINR","INTF_PhyCell_ID","INTF_RFCN","INTF_Cell_ID","INTF_RSRP","INTF_RSRQ","INTF_Current_Band","INTF_SINR","INTF_RSSI","INTF_Network_In_Use","INTF_Current_Access_Technology","SCC_Info","INTF_Uplink_Bandwidth","INTF_Downlink_Bandwidth","NSA_PhyCellID","NSA_DL_BW"],i=0;i<vars.length;i++)window[vars[i]]=signal[vars[i]];barGraph("rsrp",INTF_RSRP,-130,-60),barGraph("rsrq",INTF_RSRQ,-16,-3),barGraph("sinr",INTF_SINR,0,24),barGraph("nr5rsrp",NSA_RSRP,-130,-60),barGraph("nr5rsrq",NSA_RSRQ,-16,-3),barGraph("nr5sinr",NSA_SINR,0,24),cell_id=INTF_Cell_ID,rsrp=INTF_RSRP,rsrq=INTF_RSRQ,sinr=INTF_SINR,rssi=INTF_RSSI,nr5rsrp=NSA_RSRP,nr5rsrq=NSA_RSRQ,nr5sinr=NSA_SINR,nr5rssi=NSA_RSSI,$(".nr").toggle("undefined"!=typeof NSA_Band),enbid=Math.trunc(cell_id/256),Current_Band=adj(INTF_Current_Band,INTF_Downlink_Bandwidth,INTF_Uplink_Bandwidth),plmn=INTF_Network_In_Use.split("_")[3],"22201"==plmn&&(plmn="2221"),"22299"==plmn&&(plmn="22288"),"22250"==plmn&&6==enbid.length&&(plmn="22288"),link_lte="https://lteitaly.it/internal/map.php#bts="+plmn+"."+enbid,$("#lteitaly").attr("href",link_lte),"LTE-A"==INTF_Current_Access_Technology?$("#ca").parent().parent().css("border-color","#6a4c93"):$("#ca").parent().parent().css("border-color","#bbb"),ca_txt="";for(var i=0;i<SCC_Info.length;i++)ca_txt+=adj(SCC_Info[i].Band,SCC_Info[i].DownlinkBandwidth,SCC_Info.UplinkBandwidth)+"+";for(NSA_Band&&(ca_txt+='<span style="padding:5px;border-radius:5px;font-size:1.2em;background-color:#ffad60;color:#000;font-weight:bold;">'+NSA_Band+"</span>("+NSA_DL_BW+"MHz)"),ca_txt=ca_txt.slice(0,-1),dervars=["cell_id","sinr","rssi","rsrp","rsrq","nr5sinr","nr5rssi","nr5rsrp","nr5rsrq","ca_txt","enbid","INTF_Current_Access_Technology","Current_Band"],i=0;i<dervars.length;i++)$("#"+dervars[i]).html(window[dervars[i]])}})}function i(){ca_txt=INTF_Current_Band+"-PCI,EARFCN:"+INTF_PhyCell_ID+","+INTF_RFCN;if(""!=SCC_Info){for(var i=0;i<SCC_Info.length;i++)ca_txt+="\n"+SCC_Info[i].Band+"-PCI,EARFCN:"+SCC_Info[i].PhysicalCellID+","+SCC_Info[i].RFCN;}let nsa_info="";if(typeof NSA_Band!=="undefined"&&typeof NSA_PhyCellID!=="undefined"&&typeof NSA_RFCN!=="undefined"){nsa_info="NR5G_"+NSA_Band.replace("NR5G_","");ca_txt+="\n"+nsa_info+"-PCI,EARFCN:"+NSA_PhyCellID+","+NSA_RFCN+"("+NSA_DL_BW+"MHz)";}$("#modal-content").html("<pre>"+ca_txt+"</pre>");$("#modal").show()}function closeModal(){$("#modal").hide()}function barGraph(p,val,min,max){for(val>max&&(val=max),val<min&&(val=min),ap="a"+p,window[ap].unshift(val),window[ap].length>boxcar&&window[ap].pop(),html='<svg version="1.1" viewBox="0 0 '+gw+" "+gh+'" width="'+gw+'" height="'+gh+'" preserveAspectRatio="xMaxYMax slice" style="border:1px solid #e0e0e0;padding:1px;margin-top:-6px;width: '+gw+'px;background-color:#f8f9fa;">',x=0;x<window[ap].length;x++)pax=(gt+1)*(x+1),pay=gh-1,pby=gh-(window[ap][x]-min)/(max-min)*gh,pc=(window[ap][x]-min)/(max-min)*100,pc<50?color="#ffeb3b":pc<85?color="#90ee90":color="#ff9800",html+='<line x1="'+pax+'" y1="'+pay+'" x2="'+pax+'" y2="'+pby+'" stroke="'+color+'" stroke-width="'+gt+'" stroke-linecap="round"></line>';html+="</svg>",$("#b"+p).html(html)}function ftb(){$("body").prepend('<style>.clear{clear:both}li span{margin-left:5px}#cell_id,#enbid,#nr5rsrp,#nr5rsrq,#nr5rssi,#nr5sinr,#rsrp,#rsrq,#rssi,#sinr{color:#e07a5f;font-weight:strong}.f{float:left;border:1px solid #e0e0e0;border-radius:8px;padding:15px;line-height:2em;margin:5px;background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,0.1)}.f ul{margin:0;padding:0}.f ul li{display:inline;margin-right:5px;margin-left:5px}#enbid{font-weight:700;text-decoration:underline}.p{border-bottom:1px solid #e0e0e0;width:auto;height:20px}.v{height:100%25;border-right:1px solid #e0e0e0;padding-left:20px}#modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.5);z-index:1000}.modal-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:20px;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,0.3);font-family:monospace;white-space:pre-wrap;word-break:break-word;max-width:80%;max-height:80%;overflow:auto}.close-button{position:absolute;top:10px;right:10px;font-size:1.2em;cursor:pointer;background-color:#ddd;border:none;border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center}.action{background-color:#2980B9;padding:10px;border-radius:10px;color:#fff;font-weight:bolder;margin-right:5px;margin-left:5px;text-decoration:none}.speedtest-button{background-color:#4CAF50}.cellwanstatus-button{background-color:#B39DDB}.reboot-button{background-color:#F05050}</style><div style="display:block;overflow:auto"><div class="f">RSRP:<span id="rsrp"></span>dBm<div id="brsrp"></div>RSRQ:<span id="rsrq"></span>dB<div id="brsrq"></div>SINR:<span id="sinr"></span>dB<div id="bsinr"></div></div><div class="f nr">NR RSRP:<span id="nr5rsrp"></span>dBm<div id="bnr5rsrp"></div>NR RSRQ:<span id="nr5rsrq"></span>dB<div id="bnr5rsrq"></div>NR SINR:<span id="nr5sinr"></span>dB<div id="bnr5sinr"></div></div><div class="f"><ul><li id="INTF_Current_Access_Technology">Che la banda sia con te! Miononno&Riskio87 ♥</li></ul></div><div class="f"><ul><li>ENB ID:<a id="lteitaly" target="lteitaly" href="#"><span id="enbid">#</span></a></li><li>CELL ID:<span id="cell_id">#</span></a></li></ul></div><div class="f"><ul><li>MAIN:<span id="Current_Band"></span></li><li id="ca">CA:<span id="ca_txt"></span>)</li></ul></div><div class="f"><ul><li><a class="action" href="#" onclick="i()">INFO</a></li><li><a class="action cellwanstatus-button" target="_blank" href="/CellWanStatus">Cell INFO</a></li><li><a class="action speedtest-button" target="_blank" href="https://www.speedtest.net/it">SpeedTest</a></li><li><a class="action reboot-button" href="/Reboot">Reboot</a></li></ul><div id="modal"><div class="modal-content"><span class="close-button" onclick="closeModal()">×</span><div id="modal-content"></div></div></div></div></div>')}gw=500,gh=30,gt=3,signal="",version="zyxel Family-v2.0a",[arsrp,arsrq,asinr,anr5rsrp,anr5rsrq,anr5sinr]=[[],[],[],[],[],[]],console.log("Code by Miononno mod by Riskio87-"+version),console.log("type: signal"),window.setInterval(getStatus,1500);
zyxel-7302-luigi.js-v Copy Copiato!
javascript:ftb();function dxc(r,n,i){var a=CryptoJS.enc.Base64.parse(i),t=CryptoJS.enc.Base64.parse(n);return CryptoJS.AES.decrypt(r,t,{iv:a,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString(CryptoJS.enc.Utf8)}function adj(r,n,i){return t="",r.length>0&&(t='<span style="color:#a00;">B'+r.slice(6)+"</span>"),n>0&&(t+="("+n+"MHz/"+i+"MHz)"),t}function getStatus(){boxcar=gw/(gt+1),$.ajax({type:"GET",url:"/cgi-bin/DAL?oid=cellwan_status",dataType:"json",success:function(r){try{var n=dxc(r.content,localStorage.AesKey,r.iv);v=JSON.parse(n),b=!0,signal=v.Object[0]}catch(n){signal=r.Object[0]}for(vars=["NSA_PCI","NSA_RFCN","NSA_Band","NSA_RSSI","NSA_RSRP","NSA_RSRQ","NSA_SINR","INTF_PhyCell_ID","INTF_RFCN","INTF_Cell_ID","INTF_RSRP","INTF_RSRQ","INTF_Current_Band","INTF_SINR","INTF_RSSI","INTF_Network_In_Use","INTF_Current_Access_Technology","SCC_Info","INTF_Uplink_Bandwidth","INTF_Downlink_Bandwidth"],i=0;i<vars.length;i++)window[vars[i]]=signal[vars[i]];barGraph("rsrp",INTF_RSRP,-130,-60),barGraph("rsrq",INTF_RSRQ,-16,-3),barGraph("sinr",INTF_SINR,0,24),barGraph("nr5rsrp",NSA_RSRP,-130,-60),barGraph("nr5rsrq",NSA_RSRQ,-16,-3),barGraph("nr5sinr",NSA_SINR,0,24),cell_id=INTF_Cell_ID,rsrp=INTF_RSRP,rsrq=INTF_RSRQ,sinr=INTF_SINR,rssi=INTF_RSSI,nr5rsrp=NSA_RSRP,nr5rsrq=NSA_RSRQ,nr5sinr=NSA_SINR,nr5rssi=NSA_RSSI,$(".nr").toggle(""!=NSA_Band),enbid=Math.trunc(cell_id/256),pcc_ul_bw=5*(INTF_Uplink_Bandwidth-1),pcc_dl_bw=5*(INTF_Downlink_Bandwidth-1),Current_Band=adj(INTF_Current_Band,pcc_dl_bw,pcc_ul_bw),plmn=INTF_Network_In_Use.split("_")[3],"22201"==plmn&&(plmn="2221"),"22299"==plmn&&(plmn="22288"),"22250"==plmn&&6==enbid.length&&(plmn="22288"),link_lte="https://lteitaly.it/internal/map.php#bts="+plmn+"."+enbid,$("#lteitaly").attr("href",link_lte),"LTE-A"==INTF_Current_Access_Technology?$("#ca").parent().parent().css("border-color","red"):$("#ca").parent().parent().css("border-color","#bbb"),ca_txt="";for(var i=0;i<SCC_Info.length;i++)ca_txt+=adj(SCC_Info[i].Band)+"+";for(NSA_Band&&(ca_txt+='<span style="padding:5px;border-radius:3px;font-size:1.2em;background-color:#eef;color:red;font-weight:bold;">'+NSA_Band+"</span>"),ca_txt=ca_txt.slice(0,-1),dervars=["cell_id","sinr","rssi","rsrp","rsrq","nr5sinr","nr5rssi","nr5rsrp","nr5rsrq","ca_txt","enbid","INTF_Current_Access_Technology","Current_Band"],i=0;i<dervars.length;i++)$("#"+dervars[i]).html(window[dervars[i]])}})}function i(){if(ca_txt=INTF_Current_Band+" - PCI,EARFCN:"+INTF_PhyCell_ID+","+INTF_RFCN,""!=SCC_Info){for(var r=0;r<SCC_Info.length;r++)ca_txt+="\n"+SCC_Info[r].Band+" - PCI,EARFCN:"+SCC_Info[r].PhysicalCellID+","+SCC_Info[r].RFCN;NSA_Band&&(ca_txt+="\n\nNSA RFCN: "+NSA_RFCN)}alert(ca_txt)}function barGraph(r,n,i,a){for(n>a&&(n=a),n<i&&(n=i),ap="a"+r,window[ap].unshift(n),window[ap].length>boxcar&&window[ap].pop(),html='<svg version="1.1" viewBox="0 0 '+gw+" "+gh+'" width="'+gw+'" height="'+gh+'" preserveAspectRatio="xMaxYMax slice" style="border:1px solid #ccc;padding:1px;margin-top:-6px;width: '+gw+'px;">',x=0;x<window[ap].length;x++)pax=(gt+1)*(x+1),pay=gh-1,pby=gh-(window[ap][x]-i)/(a-i)*gh,pc=(window[ap][x]-i)/(a-i)*100,pc<50?color="yellow":pc<85?color="green":color="orange",html+='<line x1="'+pax+'" y1="'+pay+'" x2="'+pax+'" y2="'+pby+'" stroke="'+color+'" stroke-width="'+gt+'"></line>';html+="</svg>",$("#b"+r).html(html)}function oP(e){$('.miononno').removeClass('ontop onleft').addClass($(e.target).val());}function ftb(){$("body").prepend('<style>.clear{clear:both}li span{margin-left:5px}.action{background-color:#448;padding:10px;border-radius:10px;color:#fff;font-weight:bolder;margin-right:5px;margin-left:5px}.action:hover{color:#fff}select.action{padding:1px 10px;}#cell_id,#enbid,#nr5rsrp,#nr5rsrq,#nr5rssi,#nr5sinr,#rsrp,#rsrq,#rssi,#sinr{color:#b00;font-weight:strong}.f{float:left;border:1px solid #bbb;border-radius:5px;padding:10px;line-height:2em;margin:5px}.f ul{margin:0;padding:0}.f ul li{display:inline;margin-right:5px;margin-left:5px}#enbid{font-weight:700;text-decoration:underline}.p{border-bottom:1px solid #ccc;width:auto;height:20px}.v{height:100%25;border-right:1px solid #ccc;padding-left:20px}.miononno{display:block;overflow:auto;background:#f1f1f1;}.ontop{position:fixed;top:0;right:0;left:0;height:300px;z-index:100;}.onleft{position:fixed;top:0;bottom:0;left:0;width:550px;z-index:100;}.miononno.ontop+*{margin-top:300px;}.miononno.onleft+*{margin-left:550px;}</style><div class="miononno"><div class="f">RSRP:<span id="rsrp"></span>dBm<div id="brsrp"></div>RSRQ:<span id="rsrq"></span>dB<div id="brsrq"></div>SINR:<span id="sinr"></span>dB<div id="bsinr"></div></div><div class="f nr">NR RSRP:<span id="nr5rsrp"></span>dBm<div id="bnr5rsrp"></div>NR RSRQ:<span id="nr5rsrq"></span>dB<div id="bnr5rsrq"></div>NR SINR:<span id="nr5sinr"></span>dB<div id="bnr5sinr"></div></div><div class="f"><ul><li id="INTF_Current_Access_Technology">Che la banda sia con te! Miononno ♥</li></ul></div><div class="f"><ul><li>ENB ID:<a id="lteitaly" target="lteitaly" href="#"><span id="enbid">#</span></a></li><li>CELL ID:<span id="cell_id">#</span></li></ul></div><div class="f"><ul><li>MAIN:<span id="Current_Band"></span></li><li id="ca">CA:<span id="ca_txt"></span></li></ul></div><div class="f"><ul><li><a class="action" href="#" onclick="i()">INFO</a></li><label for="onpos">Pos:</label><select class="action" id="onpos" onchange="oP(event);"><option value="">Static</option><option value="ontop">Top</option><option value="onleft">Left</option></select></li></ul></div></div>')}gw=500,gh=30,gt=3,signal="",version="zyxel Family-v2.1",[arsrp,arsrq,asinr,anr5rsrp,anr5rsrq,anr5sinr]=[[],[],[],[],[],[]],console.log("Code by Miononno - "+version),console.log("type: signal"),window.setInterval(getStatus,2e3);