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

当前为 2021-09-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         Menu Hack Takepoint.io
// @namespace    http://tampermonkey.net/
// @version      1.0
// @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
// @author       Guzmán11
// @match        https://takepoint.io
// @grant        none
// ==/UserScript==

for(x in sockets) {
    if(sockets[x].readyState == 1) connection = sockets[x]
}
let menu=`
<style>
#menu{
display:flex;
flex-direction: row;
position: absolute;
margin-left: 10px;
margin-top: 50px;
}
.row{
background:#686868c4;
width: 350px;
z-index:50;
height: 540px;
text-align: center;
padding: 10px;
margin-top: 35px;
margin-left: 40px;
box-shadow: inset 0px 0px 5px grey;
border-radius: 6px;
}
.h1{
color:#fff;
font-size:24px;
font-family:'orbitron';
}
.boton{
width: 80%;
height:55px;
background:#67a4ff;
border:0px;
border-radius:10px;
color:#fff;
font-family:'orbitron';
font-size:20px;
outline:none;
}
.input{
width:80%;
border:0px;
height:25px;
margin-top:3px;
border-radius:10px;
outline:none;

}
.sub-titulo{
font-family: 'Orbitron';
font-size: 22px;
color: #fff;
}
#view{
text-align:center;
}
#div-servers{
display: flex;
justify-content: center;
margin-top: -10px;
}

.boton-abrir{
 width:110px;
 height:37px;
 border-radius:10px;
 border:0px;
 margin-top:35px;
 margin-left:30px;
 font-family:'orbitron';
 outline:none;
}
.x{
position: absolute;
font-family: 'orbitron';
font-weight: bold;
color: #fff;
display: block;
}
#abrir{
    position:absolute;
    z-index:20;
}
</style>
<div id="abrir">
<button onclick="openbr1()"id="br1"class="boton-abrir">Menu 1</button>
<button onclick="openbr2()"id="br2"class="boton-abrir">Menu 2</button>
<button onclick="openbr3()"id="br3"class="boton-abrir">Menu 3</button>

</div>
<div id="menu">
<div  class="row" id="row-1" style="display:none;" role="row-1">
<span class="x"onclick="cerrar()">X</span>
<h1 class="h1">Play</h1>
<button class="boton" id="play">Click</button>
<h2 class="sub-titulo">username</h2>
<input class="input"id="username-menu">
<h2 class="sub-titulo">password</h2>
<input type="password"class="input"id="password-menu">
<button class="boton" style="margin-top:25px;" id="login-menu">Login</button>
<h1 class="h1">Logout</h1>
<button class="boton" style="margin-top:0px;" id="logout" onclick="logout()">Click</button>
</div>
<div  class="row" id="row-2"  style="display:none;" role="row-2">
<span class="x"onclick="cerrar()">X</span>
<h2 class="sub-titulo">username</h2>
<input class="input"id="username-register">
<h2 class="sub-titulo">Gmail</h2>
<input class="input"id="gmail-register">
<h2 class="sub-titulo">password</h2>
<input type="password"class="input"id="password-register">
<button class="boton"style="margin-top:25px;" id="register-button">Register</button>
<h1 class="h1">Servers</h1>   
<div id="div-servers"><button class="boton" style="margin-top:25px;width:100px;height: 40px;border-radius: 0px;border-radius: 10px;background: #67a4ff;" id="register-button">Usa</button>
<button class="boton" style="margin-top:25px;width:100px;height: 40px;border-radius: 0px;margin-left: 15px;border-radius: 10px;background: #67a4ff;" id="register-button">Europe</button>
</div>
</div>
<div class="row" id="row-3" role="row-3">
<span class="x" onclick="cerrar()">X</span>
<h1 class="h1" style="margin-top: 20px;">View Hack</h1>   
<input maxlength="4" style="margin-top:40px;" class="input" id="view" title="recommendation: do not put more than 1.7k or less than 1.1k">
<button class="boton" style=" margin-top: 40px;" id="view-button">View</button>
<h2 class="h1" style="margin-top:40px;">change points text</h2>   
<button class="boton" id="puntos">Random</button>
<h2 class="sub-titulo" style="margin-top:40px;">Stop</h2>
<button class="boton"  id="stop">Click</button>
</div>
</div>
</div>
`
let id=document.querySelector("body");
id.id="body";
let body=document.getElementById('body');
let main_div=document.createElement("div");
main_div.innerHTML=menu;
body.prepend(main_div)
let play=document.getElementById("play");
play.addEventListener("click",function(){
    //connection.send("s")
    eg();
})
let loginMenu=document.getElementById("login-menu");
loginMenu.addEventListener("click",function(){
    Module.loginUser(document.getElementById("username-menu").value,document.getElementById("password-menu").value,document.querySelector("#rememberMe").checked)
})
let registerMenu=document.getElementById("register-button");
registerMenu.addEventListener("click",function(){
    Module.registerUser(document.getElementById("username-register").value,document.getElementById("gmail-register").value,document.getElementById("password-register").value)
})
let view=document.getElementById("view-button");
view.addEventListener("click",function(){
    HEAP32[9788]=document.getElementById("view").value; 
    HEAP32[9787]=document.getElementById("view").value;
})
let randomNumPoints;
let idx=1210;
let intervaloPuntos;
function cambiarPuntosFunction(){
    randomNumPoints=Math.floor(Math.random() * 9999999);
    idx++
    HEAP32[idx]=randomNumPoints;
    if(idx == 1233){
        idx = 1210;
    }
}
let puntos=document.getElementById("puntos")
puntos.addEventListener("click",function(){
    intervaloPuntos=setInterval(()=>{cambiarPuntosFunction()},0)
});
let parar=document.getElementById("stop");
parar.addEventListener("click",function(){
    clearInterval(intervaloPuntos)
})
function openbr1(){
    document.getElementById("row-1").style.display="";
    document.getElementById("row-2").style.display="none";
    document.getElementById("row-3").style.display="none";
}
function openbr2(){
    document.getElementById("row-1").style.display="none";
    document.getElementById("row-2").style.display="";
    document.getElementById("row-3").style.display="none";
}
function openbr3(){
    document.getElementById("row-2").style.display="none";
    document.getElementById("row-2").style.display="none";
    document.getElementById("row-3").style.display="";
}
function cerrar(){
    document.getElementById("row-1").style.display="none";
    document.getElementById("row-2").style.display="none";
    document.getElementById("row-3").style.display="none";
}