Surviv.io Show Ping

show your ping (LAT)

  1. // ==UserScript==
  2. // @name Surviv.io Show Ping
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.3
  5. // @description show your ping (LAT)
  6. // @author vnbpm YT
  7. // @license MIT
  8. // @match *://surviv.io/*
  9. // @match *://surviv2.io/*
  10. // @match *://2dbattleroyale.com/*
  11. // @match *://2dbattleroyale.org/*
  12. // @match *://piearesquared.info/*
  13. // @match *://thecircleisclosing.com/*
  14. // @match *://archimedesofsyracuse.info/*
  15. // @match *://secantsecant.com/*
  16. // @match *://parmainitiative.com/*
  17. // @match *://nevelskoygroup.com/*
  18. // @match *://kugahi.com/*
  19. // @match *://chandlertallowmd.com/*
  20. // @match *://ot38.club/*
  21. // @match *://kugaheavyindustry.com/*
  22. // @match *://drchandlertallow.com/*
  23. // @match *://rarepotato.com/*
  24. // @grant none
  25. // ==/UserScript==
  26.  
  27. (function() {
  28. 'use strict';
  29. var el = document.createElement("p");
  30. var el2 = document.getElementsByClassName("ui-team-member ui-bg-standard")[0];
  31. el2.parentNode.appendChild(el);
  32. el2.parentNode.insertBefore(el,el2);
  33.  
  34. var lag = document.createElement("p");
  35. var lag2 = document.getElementsByClassName("ui-team-member ui-bg-standard")[0];
  36. lag2.parentNode.appendChild(lag);
  37. lag2.parentNode.insertBefore(lag,lag2);
  38. setInterval(function(){
  39. lag.style.fontSize = "20px";
  40. lag.style.textShadow = "rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) 0.540302px 0.841471px 0px, rgb(255, 255, 255) -0.416147px 0.909297px 0px, rgb(255, 255, 255) -0.989992px 0.14112px 0px, rgb(255, 255, 255) -0.653644px -0.756802px 0px, rgb(255, 255, 255) 0.283662px -0.958924px 0px, rgb(255, 255, 255) 0.96017px -0.279415px 0px";
  41. lag.style.color = "#FFFFFF";
  42. lag.style.display= "block";
  43. lag.innerHTML = "Mod by VNBPM on YouTube";
  44. })
  45.  
  46. const getPing = () => {
  47.  
  48. let ping = new Date;
  49.  
  50. let request = new XMLHttpRequest();
  51. request.open(`GET`, window.location.href, true);
  52.  
  53. request.onload = (() => {
  54. el.style.fontSize = "20px";
  55. el.style.textShadow = "rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) 0.540302px 0.841471px 0px, rgb(255, 255, 255) -0.416147px 0.909297px 0px, rgb(255, 255, 255) -0.989992px 0.14112px 0px, rgb(255, 255, 255) -0.653644px -0.756802px 0px, rgb(255, 255, 255) 0.283662px -0.958924px 0px, rgb(255, 255, 255) 0.96017px -0.279415px 0px";
  56. el.style.color = "#FF0000";
  57. el.innerHTML = `Ping: ${new Date - ping} ms`;
  58. if(document.getElementById("game-area-wrapper").style.display == "block"){
  59. }
  60. setTimeout(getPing, 500);
  61. });
  62. request.send();
  63. };
  64. getPing();
  65. })();