Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. /* global WebSocket, io */
  2. // ==UserScript==
  3. // @name feedBot nowe xd
  4. // @namespace feedBot l3
  5. // @version 1
  6. // @description l3
  7. // @author l3mpik
  8. // @match *://104.207.132.60/*
  9. // @match *.germs.io/*
  10. // @match *.galx.io/*
  11. // @match *.ogar.mivabe.nl/*
  12. // @match *.rata.io/*
  13. // @match *.gota.io/*
  14. // @match *.gaver.io/*
  15. // @match *.cellcraft.io/*
  16. // @match *.agariofun.com/*
  17. // @match *.agar.pro/*
  18. // @match *.agarabi.com/*
  19. // @match *.warball.co/*
  20. // @match *.agariom.net/*
  21. // @match *.agar.re/*
  22. // @match *.agarpx.com/*
  23. // @match *.easyagario.com/*
  24. // @match *.playagario.org/*
  25. // @match *.agariofr.com/*
  26. // @match *.agario.xyz/*
  27. // @match *.mgar.io/*
  28. // @match *.agarios.org/*
  29. // @match *.agariowun.com/*
  30. // @match *.usagar.com/*
  31. // @match *.agarioplay.com/*
  32. // @match *.privateagario.net/*
  33. // @match *.agariorage.com/*
  34. // @match *.blong.io/*
  35. // @match *.agar.blue/*
  36. // @match *.agar.bio/*
  37. // @match *.agario.se/*
  38. // @match *.nbkio.com/*
  39. // @match *.agariohit.com/*
  40. // @match *.agariomultiplayer.com/*
  41. // @match *.agariogameplay.com/*
  42. // @match *.agariowow.com/*
  43. // @match *.bestagario.net/*
  44. // @match *.tytio.com/*
  45. // @match *.kralagario.com/*
  46. // @match *.agario.zafer2.com/*
  47. // @match *.agarprivateserver.net/*
  48. // @match *.agarca.com/*
  49. // @match *.agarioplay.mobi/*
  50. // @match *.agario.mobi*
  51. // @match *.abs0rb.me/*
  52. // @match *.agario.us/*
  53. // @match *.agariojoy.com/*
  54. // @match *.agario.ch/*
  55. // @match *.ioagar.us/*
  56. // @match *.play.agario0.com/*
  57. // @match *.agario.run/*
  58. // @match *.agarpvp.us/*
  59. // @match *.agario.pw/*
  60. // @match *.ogario.net/*
  61. // @match *.ogario.net/*
  62. // @match *.alis.io/*
  63. // @match *.agario.info/*
  64. // @match *.inciagario.com/*
  65. // @match *.agar.io.biz.tr/*
  66. // @match *.agariown.com/*
  67. // @match *.agario.dk/*
  68. // @match *.agario.lol/*
  69. // @match *.agario.gen.tr/*
  70. // @match *.agarioprivateserver.us/*
  71. // @match *.agariot.com/*
  72. // @match *.agarw.com/*
  73. // @match *.agario.city/*
  74. // @match *.agario.ovh/*
  75. // @match *.feedy.io/*
  76. // @match *.agar.zircon.at/*
  77. // @require https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js
  78. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
  79. // @resource https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
  80. // @grant none
  81. // @run-at document-end
  82. // ==/UserScript==
  83. if (localStorage.getItem("fe_uuid") === null) {
  84.  
  85. console.log("%c Empty UUID. Generating UUID...", "background-color: #000000; color: #ff9a00;");
  86. localStorage.setItem("fe_uuid", getUserId());
  87. window.location.reload();
  88. } else {
  89.  
  90. console.log("%c UUID: %s", "background-color: #000000; color: #3cff00;", localStorage.getItem("fe_uuid"));
  91. }
  92.  
  93. function getUserId() {
  94.  
  95. function s4() {
  96.  
  97. return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
  98. }
  99.  
  100. return s4() + s4() + s4() +
  101. s4();
  102. }
  103.  
  104. $(document).ready(function() {
  105.  
  106. var socket = io.connect("ws://5.189.171.188:5000");
  107.  
  108. var html = "<div id='gbots-box' style='display: table; position: absolute;top: 15%;left: 10px;font-family: Ubuntu;color: rgb(255, 255, 255);z-index: 9999;border-radius: 15px;min-width: 200px;background-color: rgba(0, 0, 0, 0.5);'> <div style='display:table-cell;padding: 0px 12px 0px 12px;'> <div id='gbots-header' style='font-size: 16px;margin: 8px 0px 8px 0px;'> <span style='font-size: 20px;'></span>Minions.ovh:<span id='bot_'><span style='color:#ff8a8a;'>Kurwa Waiting....</span></span><br> <span class='hide' id='position'> </span> </div> <div id='gbots-dl' style='display: block; padding: 12px 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='glyphicon glyphicon-time' style='font-size: 14px;margin-right: 2px;color:#bbb;'></i>Time: <span id='bot_t' style='color:#bbb;'><hr><span style='font-size: 20px;'></span>R - <span><span style='color:#ff8a8a;'>Split</span></span><br> E - <span><span style='color:#ff8a8a;'>Eject</span></span> </span><br>Bots:<span id='bot_a' style='color:#ff8a8a;'>Waiting....</span></span> </div> </div> </div>";
  109. $("body").append(html);
  110.  
  111. var fe = {
  112.  
  113. uuid: '',
  114.  
  115. mouse_x: null,
  116. mouse_y: null,
  117. server: null,
  118. origin: null,
  119.  
  120. extra: {
  121.  
  122. collect_mass: false,
  123. rage_mode: false
  124. },
  125.  
  126. hotkeys: {
  127.  
  128. empty: true
  129. },
  130.  
  131. getUuid: function() {
  132.  
  133. return localStorage.getItem("fe_uuid");
  134. },
  135.  
  136. getMouse: function(callback) {
  137.  
  138.  
  139. if (window.location.origin === "http://alis.io") {
  140.  
  141. function getr(){
  142.  
  143. return Math.floor(Math.random() * 1000);
  144. }
  145.  
  146. $(_$_52a3[596]).val(getr());
  147.  
  148. function test() {
  149.  
  150. $(_$_52a3[596]).val(getr());
  151.  
  152. callback(window.mouseX, window.mouseY, window.webSocket.url.split("?")[0], window.location.origin)
  153. }
  154.  
  155.  
  156. setInterval(test, 200)
  157. } else {
  158.  
  159. WebSocket.prototype._send = WebSocket.prototype.send
  160.  
  161. WebSocket.prototype.send = function(data) {
  162. var self = this;
  163.  
  164. this._send(data);
  165. var msg = new DataView(data);
  166. if (msg.byteLength === 21) { // Most clones
  167. if (msg.getInt8(0, true) === 16) {
  168.  
  169. callback(msg.getFloat64(1, true), msg.getFloat64(9, true), self.url, window.location.origin);
  170. }
  171. }
  172. if (msg.byteLength === 13) {
  173. if (msg.getUint8(0, true) === 16) {
  174.  
  175.  
  176. callback(msg.getInt32(1, true), msg.getInt32(5, true), self.url, window.location.origin);
  177. }
  178. }
  179.  
  180. if (msg.byteLength === 5 || msg.byteLength < 4) {
  181. if (msg.getUint8(0, true) === 16) {
  182.  
  183. callback(msg.getInt16(1, true), msg.getInt16(3, true), self.url, window.location.origin);
  184. }
  185. }
  186. };
  187. }
  188. // else {
  189.  
  190. // var x = WebSocket.prototype.send;
  191.  
  192. // WebSocket.prototype.send = function(a) {
  193.  
  194. // var pack = new Uint8Array(a);
  195. // var url = this.url;
  196.  
  197. // callback(pack, pack, url, window.location.origin)
  198.  
  199. // x.apply(this, arguments);
  200. // }
  201. // }
  202. },
  203.  
  204. sendData: function(socket) {
  205.  
  206. var data = {
  207.  
  208. mouse_x: fe.mouse_x,
  209. mouse_y: fe.mouse_y,
  210. server: fe.server,
  211. origin: fe.origin,
  212. extra: fe.extra
  213. };
  214.  
  215. socket.emit('data', data);
  216. },
  217.  
  218. sendSplit: function(socket) {
  219.  
  220. socket.emit('action', "split");
  221. },
  222.  
  223. sendEject: function(socket) {
  224.  
  225. socket.emit('action', "eject");
  226. },
  227.  
  228. sendAi_on: function(socket) {
  229.  
  230. socket.emit('action', "ai_on");
  231. },
  232.  
  233. sendAi_off: function(socket) {
  234.  
  235. socket.emit('action', "ai_off");
  236. },
  237.  
  238. sendSpam: function(socket){
  239.  
  240. var msg = prompt("Chat spam","");
  241. socket.emit('action', "spam", msg);
  242. }
  243. };
  244.  
  245. if (fe.getUuid() !== null) {
  246.  
  247. fe.uuid = fe.getUuid();
  248. }
  249.  
  250. fe.getMouse(function(x, y, ip, origin) {
  251.  
  252. fe.mouse_x = x;
  253. fe.mouse_y = y;
  254. fe.server = ip;
  255. fe.origin = origin;
  256. });
  257.  
  258. socket.on("request_uuid", function() {
  259.  
  260. socket.emit('request_uuid', fe.uuid);
  261. });
  262.  
  263. setInterval(() => {
  264.  
  265. fe.sendData(socket);
  266. }, 150);
  267.  
  268. window.fe = fe;
  269.  
  270. document.addEventListener('keydown', function(e) {
  271. if (e.key === "e") {
  272.  
  273. fe.sendSplit(socket);
  274. }
  275.  
  276. if (e.key === "r") {
  277.  
  278. fe.sendEject(socket);
  279. }
  280.  
  281.  
  282. if (e.key === "x") {
  283.  
  284. fe.sendAi_on(socket);
  285. }
  286.  
  287. if (e.key === "c") {
  288.  
  289. fe.sendAi_off(socket);
  290. }
  291.  
  292. if (e.key === "z") {
  293.  
  294. fe.sendSpam(socket);
  295. }
  296.  
  297. });
  298.  
  299. var info = {
  300. bot_a: document.getElementById("bot_a"),
  301. bot_t: document.getElementById("bot_t"),
  302. };
  303.  
  304. socket.on('info', function(data) {
  305.  
  306. info.bot_a.innerHTML = data.bot_a;
  307. info.bot_t.innerHTML = (data.bot_t / 60).toString().substring(0, 2) + " (min)";
  308. });
  309.  
  310. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement