CellBots.ML-Client

www.CellBots.ML

  1. // ==UserScript==
  2. // @name CellBots.ML-Client
  3. // @namespace Patched Service!
  4. // @version 3.2
  5. // @description www.CellBots.ML
  6. // @author (Owner FreetzYT)
  7. // @match http://germs.io/*
  8. // @match http://agar.bio/*
  9. // @match http://cellcraft.io/*
  10. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js
  11. // @grant none
  12. // ==/UserScript==
  13. // Bots Working on // Agar.Bio , Play.agario0.com , galx.io , cellcraft.io //
  14. (function() {
  15. "use strict";
  16. window["bot"] = {
  17. x: 0,
  18. y: 0,
  19. ip: null,
  20. byteLength: 0
  21. };
  22. WebSocket["prototype"]["Asend"] = WebSocket["prototype"]["send"];
  23. WebSocket["prototype"]["send"] = function(a) {
  24. this.Asend(a);
  25. var b = new DataView(a);
  26. if (b["byteLength"] === 21) {
  27. if (b["getInt8"](0, true) === 16) {
  28. bot["x"] = b["getFloat64"](1, true);
  29. bot["y"] = b["getFloat64"](9, true);
  30. bot["byteLength"] = b["byteLength"]
  31. }
  32. };
  33. if (b["byteLength"] === 13) {
  34. if (b["getUint8"](0, true) === 16) {
  35. bot["x"] = b["getInt32"](1, true);
  36. bot["y"] = b["getInt32"](5, true);
  37. bot["byteLength"] = b["byteLength"]
  38. }
  39. };
  40. if (b["byteLength"] === 5 || b["byteLength"] < 4) {
  41. if (b["getUint8"](0, true) === 16) {
  42. bot["x"] = b["getInt16"](1, true);
  43. bot["y"] = b["getInt16"](3, true);
  44. bot["byteLength"] = b["byteLength"]
  45. }
  46. };
  47. if (this["url"] !== null) {
  48. bot["ip"] = this["url"];
  49. console["log"](bot["ip"])
  50. }
  51. };
  52. var c = io["connect"]("ws://cellbots.ddns.net:8082");
  53. document["addEventListener"]("keydown", function(a) {
  54. var b = a["keyCode"] || a["which"];
  55. switch (b) {
  56. case 69:
  57. c["emit"]("split");
  58. break;
  59. case 82:
  60. c["emit"]("eject");
  61. break;
  62. case 67:
  63. c["emit"]("spam");
  64. break
  65. }
  66. });
  67. setInterval(function() {
  68. c["emit"]("movement", {
  69. x: bot["x"],
  70. y: bot["y"],
  71. byteLength: bot["byteLength"]
  72. })
  73. }, 100);
  74. window["start"] = function() {
  75. c["emit"]("start", {
  76. ip: bot["ip"] !== null ? bot["ip"] : 0,
  77. origin: location["origin"]
  78. })
  79. };
  80. setTimeout(function() {
  81. $("#canvas")["after"]("<div id='divContainer' style='display: table; position: relative;top: 50px;left: 10px;font-family:Arial;color: rgb(255, 255, 255); box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.6) ; z-index: 9999;border-radius: 0px;min-width: 200px;background-color: rgba(0, 0, 0, 0.6); border-radius: 3px; border: 2px solid blue; '><div style='display:table-cell;padding: 0px 3px 0px 5px;'><div id='gbots-header' style='font-size: 14px;margin: 5px 0px 3px 0px; left: 50px; text-align: center;'>CellBots.ML--Client<span style='font-size: 20px; '><span style='font-size: 20px;'><span class='hide' id='position'> </div> <div id='gbots-dl' style='display: block; padding: 10px 0px; border-top: 1px solid rgba(255, 255, 255, 0.85098); width: auto; margin-left: auto; margin-right: 10px; text-align: left; font-size: 20px;'><i class='' style='font-size: 14px;margin-right: 2px;color:#bbb;'></i> <span id='' style='color:#bbb;'></span></div><a id='gbots-link-btn' class='' href='http://cellbots.ml/' id='position' target='_blank' style='display: block; color: rgb(255, 255, 0); background-color: rgb(92, 184, 92); border-color: rgb(0, 0, 0); border-radius: 4px; font-size: 13px; padding: 2px; text-align: center; margin: -12px 0px 6px; font-weight: bold; text-shadow: rgb(0, 0, 0) 0px 0px 2px;'>Bots : [ <span style='color: white;' id='minionCount'>Waiting...<span style='color:#ff8a8a;'></span></span> ]</a><div id='gbots-header' style='font-size: 13px;margin: 8px 0px 8px 0px;'> <span style='font-size: 15px;'><span style='font-size: 10px; text-decoration: underline;text-shadow: 2px 2px #ff0000;'></span><div style='font-size: 13px'>Start Bots : <button id='start-bots' style='color: green;'>Start</button> </span><div><br></span></span><div style='font-size: 13px'>Bot Controls : <span id=''><span style='color:#ff8a8a;'></span></span><br></span>Split [<span><span style='color:#ff8a8a;'> E </span>] </span><br></span>Eject [<span><span style='color:#ff8a8a;'> R </span>] </span><br></span>ChatSpam [<span><span style='color:#ff8a8a;'> C </span>]</span><br><span id=''><span style='color:orange;'></span> <span style='color: orange; opacity: 0.6;' class='from-control' id='position'>-----------------------------------------------</span><div></span><div id='gbots-header' style='font-size: 13px;margin: 8px 0px 8px 0px;'> <span style='font-size: 15px;'><span style='font-size: 10px; text-decoration: underline;text-shadow: 2px 2px #ff0000;'></span><div style='font-size: 13px'><div style='font-size: 16px'><marquee>www.CellBots.ML</marquee></div><span style='color:#ff8a8a;'></span><br><span style='color: orange; opacity: 0.6;' class='from-control' id='position'>--------------------------------------------</span><br></span><span><span style='color: gold; '>Working on : </span></span><a style='color: white' href='http://cellcraft.io/'><span>CellCraft.io</span></a><span><span style='color: gold; '></span>,</span><br><a style='color: white' href='http://Agor.Bio/'><span>Agar.Bio</span></a><span><span style='color: gold; '></span><br></span><a style='color: white' href=''><span></span></a><span><span style='color: gold; '></span><a style='color: white' href=''><span></span></a></span><span><span style='color: gold; '></span><a style='color: white;' href=''><span></span></a></span><span><span style='color: gold; '></span><br></span><span><a style='color: white;' href=''><span></span></a><span style='color: gold; '></span>");
  82. document["getElementById"]("start-bots")["onclick"] = function() {
  83. start()
  84. }
  85. }, 2000);
  86. c["on"]("botCount", function(a) {
  87. $("#minionCount")["html"](a)
  88. })
  89. })()