ws race

no way

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         ws race
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  no way
// @author       You
// @match        https://www.nitrotype.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        GM.xmlHttpRequest
// ==/UserScript==

(function() {
    'use strict';
var a = 0
var keys = 0
var captchaToken=0
function race(user,speed){
GM.xmlHttpRequest({
  method: "POST",
  url: "https://www.nitrotype.com/api/v2/auth/login/username?username="+user+"&password=hahaha",
  onload: function(response) {
      var token=JSON.parse(response.responseText)['results']['token']
      token=localStorage['player_token']
      if (token==undefined){
      location.href='https://www.nitrotype.com/race'
      }
      checkin(token)
      console.log(token)
    var ws = new WebSocket('wss://realtime1.nitrotype.com/realtime/?token='+token+'&transport=websocket')
setInterval(function(){ws.send('4{"stream":"race","msg":"join","payload":{"trackLeader":"","update":"03417","cacheId":"9899c6af3fcbee9ff62c3bc7b6583cde3101dd6e","cacheIdInteger":1632,"site":"nitrotype"}}')
                     },1000);
ws.addEventListener('message', function (event) {
     a =(event.data.slice(-10))
    console.log(a);


var e=100000000
var t = 10100+Math.floor(Math.random()*25)
    if(event.data.slice(-10)=='"racing"}}'){setInterval(function(){ws.send('4{"stream":"race","msg":"update","payload":{"n":0,"t":1,"s":0,"e":'+e+'}}')},500);
                                            setTimeout(function(){ws.send('4{"stream":"race","msg":"update","payload":{"n":1,"t":Date.now=function f(){return 0},"s":10000,"e":'+e+'}}')},490);
                                           setTimeout(function(){ws.close()},21000);
                                            setTimeout(function(){race(user)},22000);
                                           }


  });
  }})}
function dummy(user,speed){
GM.xmlHttpRequest({
  method: "POST",
  url: "https://www.nitrotype.com/api/v2/auth/login/username?username="+user+"&password=hahaha",
  onload: function(response) {
      var token=JSON.parse(response.responseText)['results']['token']
      if (token==undefined){
      location.href='https://www.nitrotype.com/race'
      }
      checkin(token)
      console.log(token)
    var ws = new WebSocket('wss://realtime1.nitrotype.com/realtime/?token='+token+'&transport=websocket')
setInterval(function(){ws.send('4{"stream":"race","msg":"join","payload":{"trackLeader":"qwertydvorak12","update":"03417","cacheId":"9899c6af3fcbee9ff62c3bc7b6583cde3101dd6e","cacheIdInteger":1632,"site":"nitrotype"}}')
                     },1000);
ws.addEventListener('message', function (event) {
     a =(event.data.slice(-10))
    console.log(a);


var e=0
var t = 10020+Math.floor(Math.random()*5)
    if(event.data.slice(-10)=='"racing"}}'){setInterval(function(){ws.send('4{"stream":"race","msg":"update","payload":{"n":0,"t":1,"s":0,"e":'+e+'}}')},500)
                                           setTimeout(function(){ws.close()},21000);
                                            setTimeout(function(){dummy(user)},22000);
                                           }


  });
  }})}

    function checkin(token){GM.xmlHttpRequest({
  method: "POST",
  url: "https://realtime1.nitrotype.com/realtime?token="+token,
  body:'306:4{"stream":"checkin","path":"/race","extra":{"offline":false,"friends":[59319577,59319660,59319687,59319696,59319698,59319721,59319722,59319723,59319728,59319739,59319741,59319742,59319743,59319745,59319754,59319756,59319757,59319758,59319771,59319775,59319776,59319782,59319794],"other":{"first":false}}}'
})};
    dummy('getandrewviews2027')
    dummy('getandrewviews2028')
})();