Menu Hack Takepoint.io

this allows you to log in while playing the game, log out also allows you to modify your vision and change the text of the points

  1. // ==UserScript==
  2. // @name Menu Hack Takepoint.io
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.6
  5. // @description this allows you to log in while playing the game, log out also allows you to modify your vision and change the text of the points
  6. // @author Guzmán11
  7. // @match https://takepoint.io
  8. // @grant none
  9. // @license xD
  10. // ==/UserScript==
  11. let menu=`
  12. <link href="https://fonts.googleapis.com/css?family=Orbitron:900" rel="stylesheet">
  13. <style>
  14. #menu{
  15. display: flex;
  16. flex-direction: row;
  17. position: absolute;
  18. margin-left: 3px;
  19. margin-top: 57px;
  20. }
  21. .row{
  22. background:#686868c4;
  23. width: 350px;
  24. z-index:50;
  25. height: 530px;
  26. text-align: center;
  27. padding: 10px;
  28. margin-top: 35px;
  29. margin-left: 40px;
  30. box-shadow: inset 0px 0px 5px grey;
  31. border-radius: 6px;
  32. }
  33. .h1{
  34. color:#fff;
  35. font-size:24px;
  36. font-family:'orbitron';
  37. }
  38. .boton{
  39. width: 80%;
  40. height:55px;
  41. background:#8bc34a;
  42. border:0px;
  43. border-radius:10px;
  44. color:#fff;
  45. font-family:'orbitron';
  46. font-size:20px;
  47. }
  48. .input-menu{
  49. width:80%;
  50. border:0px;
  51. height:35px;
  52. margin-top:3px;
  53. border-radius:10px;
  54. text-align:center;
  55. outline:none;
  56. }
  57. .sub-titulo{
  58. font-family: 'Orbitron';
  59. font-size: 22px;
  60. color: #fff;
  61. }
  62. #view{
  63. text-align:center;
  64. }
  65. #div-servers{
  66. display: flex;
  67. justify-content: center;
  68. margin-top: -10px;
  69. }
  70.  
  71. .boton-abrir{
  72. width: 90px;
  73. height: 40px;
  74. border-radius: 0px;
  75. border: 0px;
  76. margin-top: 35px;
  77. background: #686868c4;
  78. border-radius: 6px;
  79. margin-left: 45px;
  80. color: #fff;
  81. font-family: 'orbitron';
  82. font-weight: bold;
  83. }
  84. .x{
  85. position: absolute;
  86. font-family: 'orbitron';
  87. font-weight: bold;
  88. color: #fff;
  89. display: block;
  90. }
  91. #abrir{
  92. position:absolute;
  93. z-index:20;
  94. }
  95. .servers{
  96. margin-top: 25px;
  97. width: 130px;
  98. height: 40px;
  99. margin-left: 15px;
  100. border-radius: 7px;
  101. color: #fff;
  102. font-size: 18px;
  103. border: 0px;
  104. background: #8bc34a;
  105. }
  106. </style>
  107.  
  108. <div id="todo-contenido" style="
  109. width: 414px;
  110. height: 660px;
  111. "><div id="abrir" style="width: 453px;text-align: center;">
  112. <button style="
  113. margin-left: 0px;
  114. " class="boton-abrir" onclick="document.getElementById('row-1').style.display=''; document.getElementById('row-2').style.display='none'; document.getElementById('row-3').style.display='none'">Menu 1</button>
  115. <button onclick="document.getElementById('row-1').style.display='none'
  116. document.getElementById('row-2').style.display=''
  117. document.getElementById('row-3').style.display='none'" id="br2" class="boton-abrir">Menu 2</button>
  118. <button onclick="document.getElementById('row-1').style.display='none'
  119. document.getElementById('row-2').style.display='none'
  120. document.getElementById('row-3').style.display='';" id="br3" class="boton-abrir">Menu 3</button>
  121.  
  122. </div>
  123. <div id="menu">
  124. <div class="row" id="row-1" style="display: none;" role="row-1">
  125. <span class="x" onclick="document.getElementById('row-1').style.display='none'
  126. document.getElementById('row-2').style.display='none'
  127. document.getElementById('row-3').style.display='none';">X</span>
  128. <h1 class="h1">Play</h1>
  129. <button class="boton" id="play">Click</button>
  130. <h2 class="sub-titulo" style="
  131. margin-top: 10px;
  132. ">username</h2>
  133. <input maxlength="12" class="input-menu" id="username-menu">
  134. <h2 class="sub-titulo">password</h2>
  135. <input type="password" class="input-menu" id="password-menu">
  136. <button class="boton" style="margin-top:25px;" id="login-menu">Login</button>
  137. <h1 class="h1">Logout</h1>
  138. <button class="boton" style="margin-top:0px;" id="logout" onclick="logout()">Click</button>
  139. </div>
  140. <div class="row" id="row-2" style="display: none;" role="row-2">
  141. <span class="x" onclick="document.getElementById('row-1').style.display='none'
  142. document.getElementById('row-2').style.display='none'
  143. document.getElementById('row-3').style.display='none';">X</span>
  144. <h2 class="sub-titulo">username</h2>
  145. <input maxlength="12" class="input-menu" id="username-register">
  146. <h2 class="sub-titulo">Gmail</h2>
  147. <input class="input-menu" id="gmail-register">
  148. <h2 class="sub-titulo">password</h2>
  149. <input type="password" class="input-menu" id="password-register">
  150. <button class="boton" style="margin-top:25px;" id="register-button">Register</button>
  151. <h1 class="h1">Servers</h1>
  152. <div id="div-servers">
  153. <button onclick="switchServer('Dallas|tak-dal-usn3i.io-8.com')" class="servers">
  154. Usa
  155. </button>
  156. <button onclick="switchServer('Frankfurt|tak-fra-g2ril.io-8.com')" class="servers">
  157. Europe
  158. </button>
  159. </div>
  160. </div>
  161. <div class="row" id="row-3" role="row-3" style="">
  162. <span class="x" onclick="document.getElementById('row-1').style.display='none'
  163. document.getElementById('row-2').style.display='none'
  164. document.getElementById('row-3').style.display='none';">X</span>
  165. <h1 class="h1" style="margin-top: 20px;">View Hack</h1>
  166. <input maxlength="4" style="margin-top:0px;" class="input-menu" id="view" title="recommendation: do not put more than 1.7k or less than 1.1k">
  167. <button class="boton" style=" margin-top: 40px;" id="view-button">View</button>
  168. <h2 class="h1" style="margin-top:40px;">points text</h2>
  169. <button class="boton" id="puntos">Random</button>
  170. <h2 class="sub-titulo" style="margin-top:30px;">Stop</h2>
  171. <button class="boton" id="stop">Click</button>
  172. </div>
  173. </div>
  174. `
  175. let numtest=909999900;
  176. let id=document.querySelector("body");
  177. id.id="body";
  178. let body=document.getElementById('body');
  179. let main_div=document.createElement("div");
  180. main_div.innerHTML=menu;
  181. body.prepend(main_div)
  182. let play=document.getElementById("play");
  183. play.addEventListener("click",function(){
  184. //connection.send("s")
  185. eg();
  186. })
  187. let loginMenu=document.getElementById("login-menu");
  188. loginMenu.addEventListener("click",function(){
  189. Module.loginUser(document.getElementById("username-menu").value,document.getElementById("password-menu").value,document.querySelector("#rememberMe").checked)
  190. })
  191. let registerMenu=document.getElementById("register-button");
  192. registerMenu.addEventListener("click",function(){
  193. Module.registerUser(document.getElementById("username-register").value,document.getElementById("gmail-register").value,document.getElementById("password-register").value)
  194. })
  195. let view=document.getElementById("view-button");
  196. view.addEventListener("click",function(){
  197. HEAP32[10035]=document.getElementById("view").value;
  198. HEAP32[10036]=document.getElementById("view").value;
  199. })
  200. let cheque=false;
  201. let randomNumPoints;
  202. let idx=1225;
  203. let intervaloPuntos;
  204. function cambiarPuntosFunction(){
  205. for( i= 1225; i <= 1231; i++){
  206. randomNumPoints=Math.floor(Math.random() * numtest);
  207. HEAP32[i]=randomNumPoints;
  208. }
  209. }
  210. let puntos=document.getElementById("puntos")
  211. puntos.addEventListener("click",function(){
  212. if(cheque == false){
  213. cheque = true;
  214. intervaloPuntos=setInterval(()=>{cambiarPuntosFunction()},0)
  215. }
  216. });
  217. let parar=document.getElementById("stop");
  218. parar.addEventListener("click",function(){
  219. if(cheque == true){
  220. cheque = false;
  221. clearInterval(intervaloPuntos)
  222. }
  223. })
  224.  
  225. //Nitrogem35 is very rat