Diep.io Home Console Commands list

press that button on top left. r to hide

  1. // ==UserScript==
  2. // @name Diep.io Home Console Commands list
  3. // @description press that button on top left. r to hide
  4. // @version 1.3
  5. // @include http://diep.io/*
  6. // @connect diep.io
  7. // @author xeron
  8. // @namespace *://diep.io/
  9. // @match *://diep.io/
  10. //@require https://code.jquery.com/jquery-3.1.0.min.js
  11. // ==/UserScript==
  12. var mbtn = document.createElement("button");
  13. document.body.appendChild(mbtn);
  14. mbtn.innerHTML = "<b>Click to show,<br> r to hide</b>";
  15. mbtn.style.backgroundColor = "red";
  16. mbtn.style.position = "absolute";
  17. mbtn.style.height = "36px";
  18.  
  19. var btn1 = document.createElement("button");
  20. document.body.appendChild(btn1);
  21. btn1.innerHTML = "Net prediction movements";
  22. btn1.style.backgroundColor = "yellow";
  23. btn1.style.position = "absolute";
  24. btn1.style.top = "55px";
  25. btn1.style.left = "0px";
  26. btn1.style.height = "36px";
  27. btn1.style.width = "105px";
  28.  
  29. var btn2 = document.createElement("button");
  30. document.body.appendChild(btn2);
  31. btn2.innerHTML = "render ui";
  32. btn2.style.backgroundColor = "powderblue";
  33. btn2.style.position = "absolute";
  34. btn2.style.top = "88px";
  35. btn2.style.left = "0px";
  36. btn2.style.height = "36px";
  37. btn2.style.width = "105px";
  38.  
  39. var btn3 = document.createElement("button");
  40. document.body.appendChild(btn3);
  41. btn3.innerHTML = "render upgrades table";
  42. btn3.style.backgroundColor = "lightgreen";
  43. btn3.style.position = "absolute";
  44. btn3.style.top = "122px";
  45. btn3.style.left = "0px";
  46. btn3.style.height = "36px";
  47. btn3.style.width = "105px";
  48.  
  49. var btn4 = document.createElement("button");
  50. document.body.appendChild(btn4);
  51. btn4.innerHTML = "render stats table";
  52. btn4.style.backgroundColor = "aquamarine";
  53. btn4.style.position = "absolute";
  54. btn4.style.top = "156px";
  55. btn4.style.left = "0px";
  56. btn4.style.height = "36px";
  57. btn4.style.width = "105px";
  58.  
  59. $(btn4).hide();
  60. $(btn3).hide();
  61. $(btn2).hide();
  62. $(btn1).hide();
  63. mbtn.onclick = function() {
  64. $(btn1).toggle();
  65. $(btn2).toggle();
  66. $(btn3).toggle();
  67. $(btn4).toggle();
  68. }
  69.  
  70. var predict = false;
  71. btn1.onclick = function() {
  72. input.set_convar("net_predict_movement", predict);
  73. if(predict) {
  74. predict = false
  75. } else {
  76. predict = true;
  77. }
  78. }
  79. var ui = false;
  80. var upgrade = false;
  81. var stat = false;
  82. btn2.onclick = function() {
  83. input.set_convar("ren_ui", ui);
  84. if(ui == false) {
  85. ui = true;
  86. } else {
  87. ui = false
  88. }
  89. }
  90. btn3.onclick = function() {
  91. input.set_convar("ren_upgrades", upgrade);
  92. if(upgrade == false) {
  93. upgrade = true;
  94. } else {
  95. upgrade = false
  96. }
  97. }
  98. btn4.onclick = function() {
  99. input.set_convar("ren_stats", stat);
  100. if(stat == false) {
  101. stat = true;
  102. } else {
  103. stat = false
  104. }
  105. }
  106. window.addEventListener("keyup", function(e){
  107. if (e.key == "r") {
  108. $(mbtn).toggle();
  109. $(btn1).hide();
  110. $(btn2).hide();
  111. $(btn3).hide();
  112. $(btn4).hide();
  113. }
  114. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址