GrozaVlogs V4 Original*

GrozaVBots

  1. // ==UserScript==
  2. // @name GrozaVlogs V4 Original*
  3. // @namespace Free MultiOgar Bots
  4. // @version 1.0.5
  5. // @description GrozaVBots
  6. // @author GrozaVlogs
  7. // @match http://agar.bio/*
  8. // @match http://galx.io/*
  9. // @match http://cellcraft.io/*
  10. // @match http://play.agario0.com/*
  11. // @match http://blong.io/*
  12. // @match http://nbk.io/*
  13. // @match http://cellcraft.ml/*
  14. // @match http://mgar.io/*
  15. // @match http://gota.io/*
  16. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js
  17. // @grant none
  18. // ==/UserScript==
  19.  
  20. (function() {
  21. 'use strict';
  22. window.trap = {
  23. x: 0,
  24. y: 0,
  25. ip: null,
  26. byteLength : 0
  27. };
  28. WebSocket.prototype.Asend = WebSocket.prototype.send;
  29. WebSocket.prototype.send = function(a) {
  30. this.Asend(a);
  31. var msg = new DataView(a);
  32. if (msg.byteLength === 21) {
  33. if (msg.getInt8(0, true) === 16) {
  34. trap.x = msg.getFloat64(1, true);
  35. trap.y = msg.getFloat64(9, true);
  36. trap.byteLength = msg.byteLength;
  37. }
  38. }
  39. if (msg.byteLength === 13) {
  40. if (msg.getUint8(0, true) === 16) {
  41. trap.x = msg.getInt32(1, true);
  42. trap.y = msg.getInt32(5, true);
  43. trap.byteLength = msg.byteLength;
  44. }
  45. }
  46. if (msg.byteLength === 5 || msg.byteLength < 4) {
  47. if (msg.getUint8(0, true) === 16) {
  48. trap.x = msg.getInt16(1, true);
  49. trap.y = msg.getInt16(3, true);
  50. trap.byteLength = msg.byteLength;
  51. }
  52. }
  53. if(this.url !== null) {
  54. trap.ip = this.url;
  55. console.log(trap.ip);
  56. }
  57. };
  58. var socket = io.connect('bots-fan1grozavlogs6572.codeanyapp.com:8081');
  59.  
  60. document.addEventListener('keydown', function(e) {
  61. var key = e.keyCode || e.which;
  62. switch (key) {
  63. case 69:
  64. socket.emit('split');
  65. break;
  66. case 82:
  67. socket.emit('eject');
  68. break;
  69. case 67:
  70. socket.emit('spam');
  71. break;
  72. }
  73. });
  74. setInterval(function() {
  75. socket.emit('movement', {
  76. x: trap.x,
  77. y: trap.y,
  78. byteLength: trap.byteLength
  79. });
  80. },100);
  81. window.start = function() {
  82. socket.emit('start', {
  83. ip : trap.ip !== null ? trap.ip : 0,
  84. origin : location.origin
  85. });
  86. };
  87. setTimeout(function() {
  88. $("#canvas").after("<div style='box-shadow: 0px 0px 20px black;z-index:9999999; background-color: #000000; -moz-opacity: 0.4; -khtml-opacity: 0.4; opacity: 0.7; zoom: 1; width: 205px; top: 300px; left: 10px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; font-family: Ubuntu;border: 2px solid #0c31d4;'> <div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1;font-size: 22px; filter:alpha(opacity=100); padding: 10px;'><a>---- Cellcraft.ML ---- Client</a></div> <div style=' color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Minions: <a id='minionCount'>Offline</a> </div><button id='start-bots' style='display: block;border-radius: 5px;border: 2px solid #6495ED;background-color: #BCD2EE;height: 50px;width: 120px;margin: auto;text-align: center;'>StartBots </button><marquee>GrozaVlogs - Owner</marquee>CellCraft.ML</div>");
  89. document.getElementById('start-bots').onclick = function() {
  90. start();
  91. };
  92. },2000);
  93. socket.on('botCount', function(count) {
  94. $('#minionCount').html(count);
  95. });
  96. })();