Advertisement
Guest User

GayBoi Decoded

a guest
Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Dogbots V4
  3. // @namespace Dogbots V4
  4. // @version 4
  5. // @description A free bot service provided by Wolfie
  6. // @author Wolfie
  7. // @match *.galx.io/*
  8. // @match *.cellcraft.io/*
  9. // @match *.hagar.pe.hu/*
  10. // @match *.agario.top/*
  11. // @match *.agar.pro/play/*
  12. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  13. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
  14. // @resource https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
  15. // @grant none
  16. // @run-at document-end
  17. // ==/UserScript==
  18. 'use strict';
  19. if (localStorage.getItem("fe_uuid") === null) {
  20. console.log("%c Oh no, you don't seem to have a UUID. Let me generate that UUID for you", "background-color: #4286f4; color: #f4e241;");
  21. localStorage.setItem("fe_uuid", getUserId());
  22. window.location.reload();
  23. } else {
  24. console.log("%c UUID: %s", "background-color: #4286f4; color: #f4e241;", localStorage.getItem("fe_uuid"));
  25. }
  26.  
  27. function getUserId() {
  28. function getItem() {
  29. return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
  30. }
  31. return getItem() + getItem() + getItem() + getItem();
  32. }
  33. $(document).ready(function() {
  34. var self = io.connect("ws://142.44.240.153:8081");
  35. var photoText = "<div id='divContainer' style='display: table; position: absolute;bottom: 15px;right: 220px;font-family:inherit;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: 20px; border: 2px solid black; '><div style='display:table-cell;padding: 0px 3px 0px 5px;'><div id='gbots-header' style='font-size: 16px;margin: 5px 0px 3px 0px; right: 10px; text-align: center;'>Dogbots<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: 10px;color:#bbb;'></i> <span id='' style='color:#bbb;'></span></div><a id='gbots-link-btn' class='' href='http://dogbots.ga/' id='position' target='_blank' style='display: block; color: rgb(255, 255, 0); background-color: rgba(0,0,0,.35); 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: gold;' <span id='bot_a'style='color:#FFFFFF;'> Offline</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><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><br><span id=''><span style='color:orange;'></span>";
  36. $("body").append(photoText);
  37. var opts = {
  38. uuid: "",
  39. mouse_x: null,
  40. mouse_y: null,
  41. server: null,
  42. origin: null,
  43. extra: {
  44. collect_mass: false,
  45. rage_mode: false
  46. },
  47. hotkeys: {
  48. empty: true
  49. },
  50. FetchUserId: function getVisitKey() {
  51. return localStorage.getItem("fe_uuid");
  52. },
  53. FetchMouse: function send(callback) {
  54. if (window.location.origin === "http://alis.io") {
  55. var oneSecondTick = function open() {
  56. callback(getCurrentX(), getCurrentY(), window.webSocket.url, window.location.origin);
  57. };
  58. setInterval(oneSecondTick, 200);
  59. } else {
  60. WebSocket.prototype._send = WebSocket.prototype.send;
  61. WebSocket.prototype.send = function(data) {
  62. var errorMessages = this;
  63. this._send(data);
  64. var view = new DataView(data);
  65. if (view.byteLength === 21) {
  66. if (view.getInt8(0, true) === 16) {
  67. callback(view.getFloat64(1, true), view.getFloat64(9, true), errorMessages.url, window.location.origin);
  68. }
  69. }
  70. if (view.byteLength === 13) {
  71. if (view.getUint8(0, true) === 16) {
  72. callback(view.getInt32(1, true), view.getInt32(5, true), errorMessages.url, window.location.origin);
  73. }
  74. }
  75. };
  76. }
  77. },
  78. sendData: function client_send_data(data) {
  79. var header = {
  80. mouse_x: opts.mouse_x,
  81. mouse_y: opts.mouse_y,
  82. server: opts.server,
  83. origin: opts.origin,
  84. extra: opts.extra
  85. };
  86. data.emit("data", header);
  87. },
  88. sendSplit: function match(cmd) {
  89. cmd.emit("action", "split");
  90. },
  91. sendEject: function register(pool) {
  92. pool.emit("action", "eject");
  93. }
  94. };
  95. if (opts.FetchUserId() !== null) {
  96. opts.uuid = opts.FetchUserId();
  97. }
  98. opts.FetchMouse(function(local_url, goPage, proxy, error) {
  99. opts.mouse_x = local_url;
  100. opts.mouse_y = goPage;
  101. opts.server = proxy;
  102. opts.origin = error;
  103. });
  104. self.on("request_uuid", function() {
  105. self.emit("request_uuid", opts.uuid);
  106. });
  107. setInterval(function() {
  108. opts.sendData(self);
  109. }, 150);
  110. document.addEventListener("keydown", function(data) {
  111. if (data.key === "e") {
  112. opts.sendSplit(self);
  113. }
  114. if (data.key === "r") {
  115. opts.sendEject(self);
  116. }
  117. if (data.key === "x") {
  118. opts.sendAi_on(self);
  119. }
  120. if (data.key === "c") {
  121. opts.sendAi_off(self);
  122. }
  123. });
  124. var GithubImageViewer = {
  125. bot_a: document.getElementById("bot_a")
  126. };
  127. self.on("info", function(canCreateDiscussions) {
  128. GithubImageViewer.bot_a.innerHTML = canCreateDiscussions.bot_a + " / 100";
  129. });
  130. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement