Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var currentVid = "3KUeGUrvCZrA7l9";
- var tag = document.createElement('script');
- tag.src = "https://www.youtube.com/iframe_api";
- var firstScriptTag = document.getElementsByTagName('script')[0];
- firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
- window["MC"] = {};
- function escapeHtml(_0xf2d5x2) {
- return String(_0xf2d5x2)["replace"](/[&<>"'\/]/g, function(_0xf2d5x2) {
- return entityMap[_0xf2d5x2];
- });
- }
- function updateBotCount(_0xf2d5x2, b) {
- uBot["localBotsAlive"][_0xf2d5x2] = b;
- var _0xf2d5x5 = uBot["serverBots"];
- var _0xf2d5x6 = 5 + uBot["serverBots"];
- var _0xf2d5x7 = 0;
- for (;_0xf2d5x7 < 2;_0xf2d5x7++) {
- if (uBot["localBotsAlive"][_0xf2d5x7]) {
- _0xf2d5x5++;
- }
- }
- if (0 == _0xf2d5x5) {
- $("#botCount")["html"]('<font color="red">0 / ' + _0xf2d5x6 + "</font>");
- } else {
- $("#botCount")["html"]('<font color="#7FFF00">' + _0xf2d5x5 + " / " + _0xf2d5x6 + "</font>");
- }
- }
- function startLocalBots() {
- var _0xf2d5x9 = 0;
- for (;_0xf2d5x9 < uBot["startBotAmount"];_0xf2d5x9++) {
- uBot["localBotsAlive"][_0xf2d5x9] = false;
- uBot["localBots"][_0xf2d5x9] = new Worker(URL["createObjectURL"](new Blob(["(" + generateBotFunction() + ")()"], {
- type : "text/javascript"
- })));
- uBot["localBots"][_0xf2d5x9]["onmessage"] = function(_0xf2d5x2) {
- var b = _0xf2d5x2["data"];
- switch(b["name"]) {
- case "add":
- updateBotCount(b["botID"], true);
- addBallToMinimap(true, "bot" + b["botID"], b["botName"], b["x"], b["y"], "#FF00FF", true);
- break;
- case "remove":
- updateBotCount(b["botID"], false);
- removeBallFromMinimap("bot" + b["botID"]);
- break;
- case "position":
- moveBallOnMinimap("bot" + b["botID"], b["x"], b["y"]);
- break;
- default:
- console["log"]("Unknown command received from bot");
- }
- };
- uBot["localBots"][_0xf2d5x9]["postMessage"]({
- name : "botID",
- botID : _0xf2d5x9
- });
- }
- updateBotNames();
- }
- function startRemoteBots() {
- var _0xf2d5x2 = 0;
- for (;_0xf2d5x2 < 3;_0xf2d5x2++) {
- uBot["remoteBots"][_0xf2d5x2] = new Worker(URL["createObjectURL"](new Blob(["(" + generateBotFunction() + ")()"], {
- type : "text/javascript"
- })));
- }
- }
- function startGiveawayBots() {
- var _0xf2d5x2 = 0;
- for (;_0xf2d5x2 < uBot["giveAwayBotAmount"];_0xf2d5x2++) {
- uBot["giveAwayBots"][_0xf2d5x2] = new Worker(URL["createObjectURL"](new Blob(["(" + generateBotFunction() + ")()"], {
- type : "text/javascript"
- })));
- }
- }
- function sendLocalBotsMessage(_0xf2d5x2) {
- for (i in uBot["localBots"]) {
- uBot["localBots"][i]["postMessage"](_0xf2d5x2);
- }
- }
- function sendRemoteBotsMessage(_0xf2d5x2) {
- for (i in uBot["remoteBots"]) {
- uBot["remoteBots"][i]["postMessage"](_0xf2d5x2);
- }
- }
- function sendGiveawayBotsMessage(_0xf2d5x2) {
- for (i in uBot["giveAwayBots"]) {
- uBot["giveAwayBots"][i]["postMessage"](_0xf2d5x2);
- }
- }
- function insertCore() {
- var _0xf2d5x10 = new XMLHttpRequest;
- _0xf2d5x10["open"]("GET", "/agario.core.js", true);
- _0xf2d5x10["onload"] = function() {
- var _0xf2d5x11 = _0xf2d5x10["responseText"];
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onPlayerSpawn)", "uBot.playerSpawned();if(h.MC&&h.MC.onPlayerSpawn)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onPlayerDeath)", "uBot.playerDied();if(h.MC&&h.MC.onPlayerDeath)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onAgarioCoreLoaded)", "uBot.onAgarioCoreLoaded();if(h.MC&&h.MC.onAgarioCoreLoaded)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onDisconnect)", "uBot.playerDisconnected();if(h.MC&&h.MC.onDisconnect)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "connect:function(a){", "connect:function(a){uBot.playerConnected(a);");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "sendSpectate:function(){", "sendSpectate:function(){uBot.playerSpectated();");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "sendNick:function(a){", "sendNick:function(a){uBot.updateNickname(a);");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "setTarget:function(a,b){", "setTarget:function(a,b){if(uBot.stopMovement){a = $('#canvas').width() / 2; b = $('#canvas').height() / 2;}");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);)/i, "$1 if(uBot.setMapCoords){uBot.setMapCoords($3,$5,$7,$9,$2,$8);}");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /([\w$]+\(\d+,\w\[\w>>2\]\|0,(\+\w),(\+\w)\)\|0;[\w$]+\(\d+,\w\[\w>>2\]\|0,\+-(\+\w\[\w\+\d+>>3\]),\+-(\+\w\[\w\+\d+>>3\])\)\|0;)/i, "$1 uBot.playerX=$4; uBot.playerY=$5;");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /if\((\+\w\[\w>>3\])<1\.0\){/i, "if($1 < uBot.zoomResetValue){");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(if\(\w<=)(20\.0)(\){\w=\w;return})(if\(!\w\){if\(\(\w\[\d+\]\|0\)!=\(\w\[\d+\]\|0\)\){\w=\w;return}if\(\(\w\[\w\+\d+>>0\]\|0\)!=0\?\(\w\[\w>>0\]\|0\)==0:0\){\w=\w;return}})/i, "$140.0$3");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(\w)(=\+\w\[\w>>3\]\*\+\w\()(.\d)(,\+\w\);)/i, "$1$2 (uBot.zoomSpeedValue||0.9) $4 uBot.zoomValue=$1;");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(\w=\w\[\w>>2\]\|0;)((\w\[\w>>3\])=(\w);)(\w\[\w>>0\]=a\[\w>>0\];)/i, "$1 if(!uBot.autoZoom){$3 = uBot.zoomValue;}else{$2}$5");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /((\w)=(\+\(\(\w\[\w\+\d+>>\d.*;)(\w)=(\+\(\(\w\[.*\/2\|\d\)\|0\)\/\w\+\s\+\w\[\w\+\d+>>3\];).*\4=\4<\w\?\w:\w;)/, "uBot.mouseX = $3 uBot.mouseY = $5 $1");
- eval(_0xf2d5x11);
- };
- _0xf2d5x10["send"]();
- }
- function MinimapBall(_0xf2d5x2, b, _0xf2d5x5, _0xf2d5x6, _0xf2d5x7, _0xf2d5x10) {
- this["isDefault"] = _0xf2d5x2;
- this["name"] = b;
- this["x"] = _0xf2d5x5;
- this["y"] = _0xf2d5x6;
- this["lastX"] = _0xf2d5x5;
- this["lastY"] = _0xf2d5x6;
- this["color"] = _0xf2d5x7;
- this["visible"] = _0xf2d5x10;
- }
- function drawMinimap() {
- if (null != miniMap ? minimapCtx["clearRect"](0, 0, 200, 200) : (miniMap = document["getElementById"]("minimap"), minimapCtx = miniMap["getContext"]("2d"), miniMap["width"] = 400, miniMap["height"] = 400, miniMap["style"]["width"] = "200px", miniMap["style"]["height"] = "200px", minimapCtx["scale"](2, 2)), uBot["mapOffsetFixed"] && uBot["drawMinimap"]) {
- minimapCtx["globalAlpha"] = 0.4;
- minimapCtx["fillStyle"] = "#000000";
- minimapCtx["fillRect"](0, 0, miniMap["width"], miniMap["height"]);
- var _0xf2d5x2 = 200 / uBot["mapSize"];
- var b = 200 / uBot["mapSize"];
- minimapCtx["globalAlpha"] = 1;
- for (ball in minimapBalls) {
- minimapBalls[ball]["draw"](minimapCtx, _0xf2d5x2, b);
- }
- }
- }
- function resetMinimap() {
- for (ball in minimapBalls) {
- if (!minimapBalls[ball]["isDefault"]) {
- delete minimapBalls[ball];
- }
- }
- }
- function addBallToMinimap(_0xf2d5x2, b, _0xf2d5x5, _0xf2d5x6, _0xf2d5x7, _0xf2d5x10, _0xf2d5x16) {
- minimapBalls[b] = new MinimapBall(_0xf2d5x2, _0xf2d5x5, _0xf2d5x6, _0xf2d5x7, _0xf2d5x10, _0xf2d5x16);
- }
- function removeBallFromMinimap(_0xf2d5x2) {
- if (minimapBalls[_0xf2d5x2]) {
- delete minimapBalls[_0xf2d5x2];
- }
- }
- function moveBallOnMinimap(_0xf2d5x2, b, _0xf2d5x5) {
- if (minimapBalls[_0xf2d5x2]) {
- minimapBalls[_0xf2d5x2]["x"] = b;
- minimapBalls[_0xf2d5x2]["y"] = _0xf2d5x5;
- }
- }
- function setBallVisible(_0xf2d5x2, b) {
- if (minimapBalls[_0xf2d5x2]) {
- minimapBalls[_0xf2d5x2]["visible"] = b;
- }
- }
- function changeNicknameOnBall(_0xf2d5x2, b) {
- if (minimapBalls[_0xf2d5x2]) {
- minimapBalls[_0xf2d5x2]["name"] = b;
- }
- }
- function replaceRegexFile(_0xf2d5x2, b, _0xf2d5x5) {
- var _0xf2d5x6 = new RegExp(b);
- return _0xf2d5x6["test"](_0xf2d5x2) ? _0xf2d5x2 = _0xf2d5x2["replace"](b, _0xf2d5x5) : console["log"]("[Failed] to replace: " + b), _0xf2d5x2;
- }
- function replaceNormalFile(_0xf2d5x2, b, _0xf2d5x5) {
- return _0xf2d5x2["indexOf"](b) != -1 ? _0xf2d5x2 = _0xf2d5x2["replace"](b, _0xf2d5x5) : console["log"]("[Failed] to replace: " + b), _0xf2d5x2;
- }
- function sendCommand(_0xf2d5x2) {
- if (null != socket) {
- if (socket["connected"]) {
- socket["emit"]("command", _0xf2d5x2);
- }
- }
- }
- function connectTouBotServer() {
- socket = io["connect"]("ws://149.56.102.55:8001", {
- reconnection : true,
- query : "key=" + client_uuid
- });
- socket["on"]("message", function(_0xf2d5x1f) {
- alert(_0xf2d5x1f);
- });
- socket["on"]("command", function(_0xf2d5x2) {
- if (void 0 === _0xf2d5x2["name"]) {
- return void console["log"]("Recieved a command with no name.");
- }
- switch(_0xf2d5x2["name"]) {
- case "force-update":
- resetMinimap();
- transmit_current_server(true);
- if (uBot["isAlive"]) {
- sendCommand({
- name : "alive",
- playerName : uBot["playerName"]
- });
- }
- break;
- case "add":
- addBallToMinimap(false, _0xf2d5x2["socketID"], _0xf2d5x2["playerName"], _0xf2d5x2["x"], _0xf2d5x2["y"], "#FFFFFF", true);
- break;
- case "remove":
- removeBallFromMinimap(_0xf2d5x2["socketID"]);
- break;
- case "position":
- moveBallOnMinimap(_0xf2d5x2["socketID"], _0xf2d5x2["x"], _0xf2d5x2["y"]);
- break;
- case "count":
- uBot["serverBots"] = _0xf2d5x2["count"];
- break;
- case "auth":
- uBot["isAuthorized"] = true;
- console["log"]("Your client is authorized for use of more bots.");
- break;
- case "ytlink":
- currentVid = _0xf2d5x2["ytlink"];
- console["log"]("Received " + currentVid);
- $("#helloDialog4")["replaceWith"]('<div id="helloDialog4" class="agario-panel agario-side-panel"style="width:340px"><center><img width="250px"src="http://agario.city/images/yt-gamin.png"></center><br><center><iframe width="305"height="230"style="position: relative; top: 10px; border-radius: 5px; border: 2px solid red;"src="http://youtube.com/embed/' + currentVid + '?autoplay=1&loop=1&hd=1"frameborder="0"allowfullscreen=""></iframe></center><br><br></div>');
- break;
- default:
- return void console["log"]("Received a command with an unknown name: " + _0xf2d5x2["name"]);
- }
- });
- socket["on"]("bots", function(_0xf2d5x2) {
- if ("server" == _0xf2d5x2["name"]) {
- uBot["remoteBotsServer"] = _0xf2d5x2["server"];
- }
- sendRemoteBotsMessage(_0xf2d5x2);
- });
- socket["on"]("bots1", function(_0xf2d5x2) {
- if ("server" == _0xf2d5x2["name"]) {
- uBot["giveAwayBotsServer"] = _0xf2d5x2["server"];
- }
- sendGiveawayBotsMessage(_0xf2d5x2);
- });
- socket["on"]("disconnect", function() {
- resetMinimap();
- sendRemoteBotsMessage({
- name : "disconnect"
- });
- });
- }
- function updateBotNames() {
- sendLocalBotsMessage({
- name : "names",
- botNames : uBot["botNames"]
- });
- if (uBot["isAuthorized"]) {
- sendCommand({
- name : "names",
- botNames : uBot["botNames"]
- });
- }
- }
- function validateNames(_0xf2d5x2) {
- if (void 0 === _0xf2d5x2) {
- return null;
- }
- if (_0xf2d5x2["indexOf"](",") > -1) {
- var b = _0xf2d5x2["split"](",");
- for (name in b) {
- if (b[name]["length"] <= 0 || b[name]["length"] > 15) {
- return null;
- }
- }
- return b;
- }
- return _0xf2d5x2["length"] > 0 && _0xf2d5x2["length"] <= 15 ? [_0xf2d5x2] : null;
- }
- function emitSplit() {
- if (uBot["isAuthorized"]) {
- sendCommand({
- name : "split"
- });
- }
- sendLocalBotsMessage({
- name : "split"
- });
- }
- function emitMassEject() {
- if (uBot["isAuthorized"]) {
- sendCommand({
- name : "eject"
- });
- }
- sendLocalBotsMessage({
- name : "eject"
- });
- }
- function emitLocalPosition() {
- var _0xf2d5x2 = uBot["mouseX"];
- var b = uBot["mouseY"];
- if (!uBot["moveToMouse"]) {
- _0xf2d5x2 = uBot["playerX"];
- b = uBot["playerY"];
- }
- sendLocalBotsMessage({
- name : "position",
- x : _0xf2d5x2 + uBot["mapOffsetX"],
- y : b + uBot["mapOffsetY"]
- });
- }
- function emitPosition() {
- var _0xf2d5x2 = uBot["mouseX"];
- var b = uBot["mouseY"];
- if (!uBot["moveToMouse"]) {
- _0xf2d5x2 = uBot["playerX"];
- b = uBot["playerY"];
- }
- sendCommand({
- name : "position",
- x : uBot["realPlayerX"],
- y : uBot["realPlayerY"],
- botX : _0xf2d5x2 + uBot["mapOffsetX"],
- botY : b + uBot["mapOffsetY"]
- });
- }
- function transmit_current_server(_0xf2d5x2) {
- if (_0xf2d5x2 || last_transmited_game_server != uBot["server"]) {
- last_transmited_game_server = uBot["server"];
- sendCommand({
- name : "servers",
- server : last_transmited_game_server
- });
- }
- }
- function generateBotFunction() {
- return function() {
- function replaceRegexFile(_0xf2d5x2, b, _0xf2d5x5) {
- var _0xf2d5x6 = new RegExp(b);
- return _0xf2d5x6["test"](_0xf2d5x2) ? _0xf2d5x2 = _0xf2d5x2["replace"](b, _0xf2d5x5) : console["log"]("[Failed] to replace: " + b), _0xf2d5x2;
- }
- function replaceNormalFile(_0xf2d5x2, b, _0xf2d5x5) {
- return _0xf2d5x2["indexOf"](b) != -1 ? _0xf2d5x2 = _0xf2d5x2["replace"](b, _0xf2d5x5) : console["log"]("[Failed] to replace: " + b), _0xf2d5x2;
- }
- function _0xf2d5x28(_0xf2d5x2, b) {
- return Math["floor"](Math["random"]() * (b - _0xf2d5x2 + 1)) + _0xf2d5x2;
- }
- function _0xf2d5x29() {
- var _0xf2d5x7 = new XMLHttpRequest;
- _0xf2d5x7["open"]("GET", "http://agar.io/agario.core.js", true);
- _0xf2d5x7["onload"] = function() {
- var _0xf2d5x11 = _0xf2d5x7["responseText"];
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /\w+\.location\.hostname/g, '"agar.io"');
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "window", "self");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "c.setStatus=function(a){console.log(a)};", "c.setStatus=function(a){};");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, 'console.log("postRun");', "");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(\w)=\+\(\(\w\[\w\+\d+>>\d.*;(\w)=\+\(\(\w\[.*\/2\|\d\)\|0\)\/\w\+\s\+\w\[\w\+\d+>>3\];/, "$1 = uBot.newX; $2 = uBot.newY;");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onPlayerSpawn)", "uBot.playerSpawned();if(h.MC&&h.MC.onPlayerSpawn)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onPlayerDeath)", "uBot.playerDied();if(h.MC&&h.MC.onPlayerDeath)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onAgarioCoreLoaded)", "uBot.onAgarioCoreLoaded();if(h.MC&&h.MC.onAgarioCoreLoaded)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(h.MC&&h.MC.onDisconnect)", "uBot.playerDisconnected();if(h.MC&&h.MC.onDisconnect)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "h.MC&&h.MC.corePendingReload", "uBot.reloadCore();h.MC&&h.MC.corePendingReload");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);)/i, "$1 if(uBot.setMapCoords){uBot.setMapCoords($3,$5,$7,$9,$2,$8);}");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /([\w$]+\(\d+,\w\[\w>>2\]\|0,(\+\w),(\+\w)\)\|0;[\w$]+\(\d+,\w\[\w>>2\]\|0,\+-(\+\w\[\w\+\d+>>3\]),\+-(\+\w\[\w\+\d+>>3\])\)\|0;)/i, "$1 uBot.playerX=$4; uBot.playerY=$5; uBot.setPath();");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(do\sif\(\w\){)((\w)=!\(\+\w\[\w>>2]<=20.0\);)(.+,\w\[\w>>2\]\|0,(\+\(\+\w\[\w>>2\]\)),(\+\(\+\w\[\w>>2\]\)),\+\((\+\w\[\w>>2\]))/, "$1var cellSize=$7;$2if(!$3){uBot.recordPellet($5,$6,cellSize);}$4");
- eval(_0xf2d5x11);
- };
- _0xf2d5x7["send"](null);
- }
- self["innerWidth"] = 1;
- self["innerHeight"] = 1;
- _0xf2d5x2a = {};
- elementMock = {
- getContext : function() {
- return{
- canvas : {
- width : 1,
- height : 1
- },
- clearRect : function() {
- },
- save : function() {
- },
- translate : function() {
- },
- scale : function() {
- },
- stroke : function() {
- },
- arc : function() {
- },
- fill : function() {
- },
- moveTo : function() {
- },
- lineTo : function() {
- },
- closePath : function() {
- },
- beginPath : function() {
- },
- restore : function() {
- },
- fillRect : function() {
- },
- measureText : function() {
- return{};
- },
- strokeText : function() {
- },
- fillText : function() {
- },
- drawImage : function() {
- }
- };
- },
- innerText : "",
- div : {
- appendChild : function() {
- }
- },
- appendChild : function() {
- },
- style : {}
- };
- document = {
- getElementById : function() {
- return elementMock;
- },
- createElement : function(_0xf2d5x2) {
- return elementMock;
- },
- body : {
- firstChild : {},
- insertBefore : function() {
- }
- }
- };
- Image = function() {
- };
- self["uBot"] = {
- server : null,
- botID : 0,
- botName : "u -Bot",
- playerX : 0,
- playerY : 0,
- newX : 0,
- newY : 0,
- realPlayerX : null,
- realPlayerY : null,
- mapOffset : 7071,
- mapOffsetX : 0,
- mapOffsetY : 0,
- mapOffsetFixed : false,
- collectPellets : false,
- pelletTargetX : 99999,
- pelletTargetY : 99999,
- pellets : [],
- recordPellet : function(_0xf2d5x2, b, _0xf2d5x5) {
- this["pellets"]["push"]({
- x : _0xf2d5x2,
- y : b,
- size : _0xf2d5x5
- });
- },
- setMapCoords : function(_0xf2d5x2, b, _0xf2d5x5, _0xf2d5x6, _0xf2d5x7, _0xf2d5x10) {
- if (_0xf2d5x10 - _0xf2d5x7 == 24) {
- if (_0xf2d5x5 - _0xf2d5x2 > 14E3) {
- if (_0xf2d5x6 - b > 14E3) {
- this["mapOffsetX"] = this["mapOffset"] - _0xf2d5x5;
- this["mapOffsetY"] = this["mapOffset"] - _0xf2d5x6;
- this["mapOffsetFixed"] = true;
- }
- }
- }
- },
- playerDied : function() {
- postMessage({
- name : "remove",
- botID : uBot["botID"]
- });
- },
- playerSpawned : function() {
- postMessage({
- name : "add",
- botID : uBot["botID"],
- botName : uBot["botName"],
- x : uBot["realPlayerX"],
- y : uBot["realPlayerY"]
- });
- },
- playerDisconnected : function() {
- postMessage({
- name : "remove",
- botID : uBot["botID"]
- });
- if (self["core"]) {
- if (null != uBot["server"]) {
- core["connect"](uBot["server"]);
- }
- }
- },
- reloadCore : function() {
- if (self["core"]) {
- self["core"]["destroy"]();
- }
- _0xf2d5x29();
- },
- onAgarioCoreLoaded : function() {
- if (self["core"]) {
- if (null != uBot["server"]) {
- core["connect"](uBot["server"]);
- }
- }
- },
- setPath : function() {
- var _0xf2d5x2 = -1;
- var b = 0;
- var _0xf2d5x5 = 0;
- for (;_0xf2d5x5 < this["pellets"]["length"];_0xf2d5x5++) {
- var _0xf2d5x6 = this["getDistanceBetweenPositions"](this["pellets"][_0xf2d5x5]["x"], this["pellets"][_0xf2d5x5]["y"], this["playerX"], this["playerY"]);
- if (!(_0xf2d5x2 != -1 && _0xf2d5x6 > b)) {
- _0xf2d5x2 = _0xf2d5x5;
- b = _0xf2d5x6;
- }
- }
- if (_0xf2d5x2 == -1) {
- this["pelletTargetX"] = 99999;
- this["pelletTargetY"] = 99999;
- } else {
- this["pelletTargetX"] = this["pellets"][_0xf2d5x2]["x"];
- this["pelletTargetY"] = this["pellets"][_0xf2d5x2]["y"];
- }
- this["pellets"] = [];
- },
- getDistanceBetweenPositions : function(_0xf2d5x2, b, _0xf2d5x5, _0xf2d5x6) {
- return Math["sqrt"](Math["pow"](_0xf2d5x5 - _0xf2d5x2, 2) + Math["pow"](b - _0xf2d5x6, 2));
- }
- };
- onmessage = function(_0xf2d5x2) {
- var b = _0xf2d5x2["data"];
- switch(b["name"]) {
- case "botID":
- uBot["botID"] = b["botID"];
- break;
- case "server":
- uBot["server"] = b["server"];
- if (self["core"]) {
- if (null != b["server"]) {
- core["connect"](b["server"]);
- }
- }
- break;
- case "position":
- if (uBot["collectPellets"] && (99999 != uBot["pelletTargetX"] && 99999 != uBot["pelletTargetY"])) {
- uBot["newX"] = uBot["pelletTargetX"];
- uBot["newY"] = uBot["pelletTargetY"];
- } else {
- uBot["newX"] = b["x"] - uBot["mapOffsetX"];
- uBot["newY"] = b["y"] - uBot["mapOffsetY"];
- }
- break;
- case "split":
- if (self["core"]) {
- core["split"]();
- }
- break;
- case "eject":
- if (self["core"]) {
- core["eject"]();
- }
- break;
- case "names":
- if (null == b["botNames"]) {
- uBot["botName"] = "á‘Œ-á—·OT.á‘Âá—¯";
- break;
- }
- uBot["botName"] = b["botNames"][_0xf2d5x28(0, b["botNames"]["length"] - 1)];
- break;
- case "disconnect":
- uBot["server"] = null;
- if (self["core"]) {
- core["disconnect"]();
- }
- break;
- case "collectPellets":
- uBot["collectPellets"] = b["collectPellets"];
- break;
- default:
- console["log"]("Unknown message received.");
- }
- };
- setInterval(function() {
- uBot["realPlayerX"] = uBot["mapOffsetX"] + uBot["playerX"];
- uBot["realPlayerY"] = uBot["mapOffsetY"] + uBot["playerY"];
- postMessage({
- botID : uBot["botID"],
- name : "position",
- x : uBot["realPlayerX"],
- y : uBot["realPlayerY"]
- });
- if (self["core"]) {
- core["sendNick"](uBot["botName"]);
- }
- }, 100);
- _0xf2d5x29();
- }.toString();
- }
- window["history"]["replaceState"]("", "", "/" + location["hash"]), window["getTextWidth"] = function(_0xf2d5x2, b) {
- var _0xf2d5x5 = getTextWidth["canvas"] || (getTextWidth["canvas"] = document["createElement"]("canvas"));
- var _0xf2d5x6 = _0xf2d5x5["getContext"]("2d");
- _0xf2d5x6["font"] = b;
- var _0xf2d5x7 = _0xf2d5x6["measureText"](_0xf2d5x2);
- return _0xf2d5x7["width"];
- };
- var entityMap = {
- "&" : "&",
- "<" : "<",
- ">" : ">",
- '"' : """,
- "'" : "'",
- "/" : "/"
- };
- var client_uuid = escapeHtml(localStorage["getItem"]("uBot_uuid"));
- if (null === client_uuid || 15 != client_uuid["length"]) {
- client_uuid = "";
- var ranStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- var ii = 0;
- for (;ii < 15;ii++) {
- client_uuid += ranStr["charAt"](Math["floor"](Math["random"]() * ranStr["length"]));
- }
- localStorage["setItem"]("uBot_uuid", client_uuid);
- }
- window["uBot"] = {
- server : null,
- playerName : "",
- startBotAmount : 5,
- giveAwayBotAmount : 1,
- playerX : 0,
- playerY : 0,
- mouseX : 0,
- mouseY : 0,
- realPlayerX : null,
- realPlayerY : null,
- mapSize : 14142,
- mapOffset : 7071,
- mapOffsetX : 0,
- mapOffsetY : 0,
- mapOffsetFixed : false,
- zoomValue : 1,
- zoomResetValue : 0,
- zoomSpeedValue : 0.9,
- autoZoom : true,
- stopMovement : false,
- isAlive : false,
- moveToMouse : true,
- localBots : {},
- localBotsAlive : {},
- remoteBotsServer : null,
- remoteBots : {},
- remoteBotsAlive : {},
- giveAwayBots : {},
- giveAwayBotsAlive : {},
- leaderboardData : "",
- serverBots : 0,
- isAuthorized : false,
- drawMinimap : true,
- setMapCoords : function(_0xf2d5x2, b, _0xf2d5x5, _0xf2d5x6, _0xf2d5x7, _0xf2d5x10) {
- if (_0xf2d5x10 - _0xf2d5x7 == 24) {
- if (_0xf2d5x5 - _0xf2d5x2 > 14E3) {
- if (_0xf2d5x6 - b > 14E3) {
- this["mapOffsetX"] = this["mapOffset"] - _0xf2d5x5;
- this["mapOffsetY"] = this["mapOffset"] - _0xf2d5x6;
- this["mapOffsetFixed"] = true;
- }
- }
- }
- },
- playerDied : function() {
- uBot["isAlive"] = false;
- moveBallOnMinimap("player_death", this["realPlayerX"], this["realPlayerY"]);
- setBallVisible("player_pointer", false);
- setBallVisible("player_death", true);
- sendCommand({
- name : "dead"
- });
- },
- playerSpawned : function() {
- uBot["isAlive"] = true;
- changeNicknameOnBall("player_pointer", uBot["playerName"]);
- setBallVisible("player_spectate", false);
- setBallVisible("player_pointer", true);
- sendCommand({
- name : "alive",
- playerName : uBot["playerName"]
- });
- },
- playerConnected : function(_0xf2d5x2) {
- resetMinimap();
- if (null != this["remoteBotsServer"]) {
- if (this["remoteBotsServer"] == _0xf2d5x2) {
- sendRemoteBotsMessage({
- name : "disconnect"
- });
- }
- }
- uBot["server"] = _0xf2d5x2;
- console["log"]("Connecting to: " + _0xf2d5x2);
- setBallVisible("player_pointer", false);
- setBallVisible("player_death", false);
- setBallVisible("player_spectate", false);
- sendLocalBotsMessage({
- name : "server",
- server : _0xf2d5x2
- });
- },
- playerDisconnected : function() {
- resetMinimap();
- sendCommand({
- name : "dead"
- });
- setBallVisible("player_pointer", false);
- setBallVisible("player_death", false);
- setBallVisible("player_spectate", false);
- uBot["server"] = null;
- uBot["isAlive"] = false;
- },
- playerSpectated : function() {
- setBallVisible("player_pointer", false);
- setBallVisible("player_spectate", true);
- sendCommand({
- name : "dead"
- });
- },
- updateNickname : function(_0xf2d5x2) {
- this["playerName"] = _0xf2d5x2;
- },
- loadCore : function() {
- console["log"]("Loading core");
- setTimeout(function() {
- startLocalBots();
- startRemoteBots();
- //startGiveawayBots();
- }, 2E3);
- console["log"]("Loading core.");
- var _0xf2d5x2f = (document["getElementById"]("canvas"), localStorage["getItem"]("botnames"));
- if (null !== _0xf2d5x2f) {
- uBot["botNames"] = validateNames(_0xf2d5x2f);
- if (null !== uBot["botNames"]) {
- $("#botnames")["val"](_0xf2d5x2f);
- }
- updateBotNames();
- }
- $("#botnames")["on"]("input", function() {
- var _0xf2d5x2 = $("#botnames")["val"]();
- var b = validateNames(_0xf2d5x2);
- uBot["botNames"] = b;
- updateBotNames();
- if (null !== b) {
- localStorage["setItem"]("botnames", _0xf2d5x2);
- }
- });
- $("#leaderboardcopy")["click"](function(_0xf2d5x2) {
- var b = $("#leaderboard")[0];
- b["setSelectionRange"](0, b["value"]["length"]);
- b["select"]();
- try {
- document["execCommand"]("copy");
- } catch (a) {
- console["log"]("Failed to copy leaderboard.");
- }
- });
- $("#uuidcopy")["click"](function(_0xf2d5x2) {
- var b = $("#uuid")[0];
- b["setSelectionRange"](0, b["value"]["length"]);
- b["select"]();
- try {
- document["execCommand"]("copy");
- } catch (a$$0) {
- console["log"]("Failed to copy uuid.");
- }
- });
- var _0xf2d5x5;
- var _0xf2d5x6 = false;
- var _0xf2d5x30 = false;
- $(document)["keydown"](function(_0xf2d5x2) {
- switch(_0xf2d5x2["which"]) {
- case 65:
- uBot["moveToMouse"] = !uBot["moveToMouse"];
- if (uBot["moveToMouse"]) {
- $("#ismoveToMouse")["html"]("<font color='#7FFF00'>On</font>");
- } else {
- $("#ismoveToMouse")["html"]("<font color='red'>Off</font>");
- }
- break;
- case 68:
- uBot["stopMovement"] = !uBot["stopMovement"];
- if (uBot["stopMovement"]) {
- $("#isStopMove")["html"]("<font color='#7FFF00'>On</font>");
- } else {
- $("#isStopMove")["html"]("<font color='red'>Off</font>");
- }
- break;
- case 69:
- emitSplit();
- break;
- case 82:
- emitMassEject();
- break;
- case 77:
- uBot["drawMinimap"] = !uBot["drawMinimap"];
- if (uBot["drawMinimap"]) {
- $("#botcanvas")["show"]();
- } else {
- $("#botcanvas")["hide"]();
- }
- break;
- case 80:
- _0xf2d5x30 = !_0xf2d5x30;
- if (_0xf2d5x30) {
- $("#collectPellets")["html"]("<font color='#7FFF00'>On</font>");
- } else {
- $("#collectPellets")["html"]("<font color='red'>Off</font>");
- }
- sendLocalBotsMessage({
- name : "collectPellets",
- collectPellets : _0xf2d5x30
- });
- if (uBot["isAuthorized"]) {
- sendCommand({
- name : "collectPellets",
- collectPellets : _0xf2d5x30
- });
- }
- break;
- case 87:
- if (_0xf2d5x6) {
- return;
- }
- _0xf2d5x6 = true;
- _0xf2d5x5 = setInterval(function() {
- core["eject"]();
- }, 50);
- }
- });
- $(document)["keyup"](function(_0xf2d5x2) {
- switch(_0xf2d5x2["which"]) {
- case 87:
- _0xf2d5x6 = false;
- clearInterval(_0xf2d5x5);
- break;
- case 84:
- var b = 0;
- var _0xf2d5x7 = setInterval(function() {
- return b > 7 ? void clearInterval(_0xf2d5x7) : (b++, void core["split"]());
- }, 50);
- break;
- case 81:
- var _0xf2d5x10 = 0;
- var _0xf2d5x16 = setInterval(function() {
- return _0xf2d5x10 > 1 ? void clearInterval(_0xf2d5x16) : (_0xf2d5x10++, void core["split"]());
- }, 50);
- }
- });
- addBallToMinimap(true, "player_pointer", uBot["playerName"], uBot["realPlayerX"], uBot["realPlayerY"], "#00FF00", false);
- addBallToMinimap(true, "player_death", "Last Death", uBot["realPlayerX"], uBot["realPlayerY"], "#FF2400", false);
- addBallToMinimap(true, "player_spectate", "Spectate", uBot["realPlayerX"], uBot["realPlayerY"], "#0000FF", false);
- connectTouBotServer();
- insertCore();
- setInterval(function() {
- MC["uBotFreeCoins"]();
- }, 5E3);
- setInterval(function() {
- drawMinimap();
- }, 33);
- },
- reloadCore : function() {
- console["log"]("Reloading Core.");
- insertCore();
- },
- onAgarioCoreLoaded : function() {
- console["log"]("On core loaded");
- $(".agario-promo-container")["remove"]();
- $(".us-elections")["remove"]();
- $("#rightPanel")["append"]('<div id="helloDialog4" class="agario-panel agario-side-panel"style="width:340px"><center><img width="250px"src="http://agario.city/images/yt-gamin.png"></center><br><center><iframe width="305"height="230"style="position: relative; top: 10px; border-radius: 5px; border: 2px solid red;"src="http://youtube.com/embed/' + currentVid + '?autoplay=1&loop=1&hd=1"frameborder="0"allowfullscreen=""></iframe></center><br><br></div>');
- /*
- $("body").append('<iframe id="ytplayer" type="text/html" src="https://www.youtube.com/embed/' + currentVid + '?controls=0&showinfo=0&rel=0&enablejsapi=1" frameborder="0" allowfullscreen></iframe><iframe id="ytplayer1" type="text/html" src="https://www.youtube.com/embed/' + currentVid + '?controls=0&showinfo=0&rel=0&enablejsapi=1" frameborder="0" allowfullscreen></iframe><iframe id="ytplayer2" type="text/html" src="https://www.youtube.com/embed/' + currentVid + '?controls=0&showinfo=0&rel=0&enablejsapi=1" frameborder="0" allowfullscreen></iframe>')
- console.log('Creating window.player')
- window.player = new YT.Player('ytplayer', {
- events: {
- 'onReady': onPlayerReady
- }
- });
- window.player1 = new YT.Player('ytplayer1', {
- events: {
- 'onReady': onPlayerReady1
- }
- });
- window.player2 = new YT.Player('ytplayer2', {
- events: {
- 'onReady': onPlayerReady2
- }
- });
- function onPlayerReady() {
- console.log('Player is ready')
- player.playVideo();
- // Mute!
- player.mute();
- }
- function onPlayerReady1() {
- console.log('Player1 is ready')
- player1.playVideo();
- // Mute!
- player1.mute();
- }
- function onPlayerReady2() {
- console.log('Player2 is ready')
- player2.playVideo();
- // Mute!
- player2.mute();
- }*/
- console["log"]("Loading settings into agario core.");
- core["setSkins"](!$("#noSkins")["is"](":checked"));
- core["setNames"](!$("#noNames")["is"](":checked"));
- core["setColors"](!$("#noColors")["is"](":checked"));
- core["setShowMass"]($("#showMass")["is"](":checked"));
- core["setDarkTheme"]($("#darkTheme")["is"](":checked"));
- }
- };
- var tempLeaderBoard = "";
- var tempLeaderBoardIndex = 1;
- CanvasRenderingContext2D["prototype"]["_fillText"] = CanvasRenderingContext2D["prototype"]["fillText"], CanvasRenderingContext2D["prototype"]["fillText"] = function() {
- this["_fillText"]["apply"](this, arguments);
- if ("Leaderboard" === arguments[0]) {
- if ("" != tempLeaderBoard) {
- uBot["leaderboardData"] = tempLeaderBoard;
- $("#leaderboard")["val"](uBot["leaderboardData"]);
- }
- tempLeaderBoardIndex = 1;
- tempLeaderBoard = "";
- } else {
- if (":teams" != $("#gamemode")["val"]() && (0 == arguments[0]["indexOf"](tempLeaderBoardIndex + ".") && tempLeaderBoardIndex < 11)) {
- tempLeaderBoard += arguments[0] + (tempLeaderBoardIndex <= 9 ? ", " : "");
- tempLeaderBoardIndex++;
- } else {
- this["_fillText"]["apply"](this, arguments);
- }
- }
- }, CanvasRenderingContext2D["prototype"]["_drawImage"] = CanvasRenderingContext2D["prototype"]["drawImage"], CanvasRenderingContext2D["prototype"]["drawImage"] = function() {
- if (arguments[0]["src"]) {
- if ("http://agar.io/img/background.png" == arguments[0]["src"]) {
- arguments[0]["src"] = "";
- }
- }
- this["_drawImage"]["apply"](this, arguments);
- };
- var miniMap = null;
- var minimapCtx = null;
- minimapBalls = {}, MinimapBall["prototype"] = {
- draw : function(_0xf2d5x2, b, _0xf2d5x5) {
- if (this["visible"]) {
- this["lastX"] = (29 * this["lastX"] + this["x"]) / 30;
- this["lastY"] = (29 * this["lastY"] + this["y"]) / 30;
- var _0xf2d5x6 = ((this["isDefault"] ? this["x"] : this["lastX"]) + uBot["mapOffset"]) * b;
- var _0xf2d5x7 = ((this["isDefault"] ? this["y"] : this["lastY"]) + uBot["mapOffset"]) * _0xf2d5x5;
- _0xf2d5x2["fillStyle"] = this["color"];
- _0xf2d5x2["font"] = "10px Ubuntu";
- _0xf2d5x2["textAlign"] = "center";
- _0xf2d5x2["fillText"]("" == this["name"] ? "An unnamed cell" : this["name"], _0xf2d5x6, _0xf2d5x7 - 10);
- _0xf2d5x2["beginPath"]();
- _0xf2d5x2["arc"](_0xf2d5x6, _0xf2d5x7, 4.5, 0, 2 * Math["PI"], false);
- _0xf2d5x2["closePath"]();
- _0xf2d5x2["fillStyle"] = this["color"];
- _0xf2d5x2["fill"]();
- }
- }
- };
- var b = new XMLHttpRequest;
- console["log"]("Loading agario.js");
- b["open"]("GET", "/mc/agario.js", true), b["onload"] = function() {
- var _0xf2d5x11 = b["responseText"];
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, 'if(js.keyCode==32&&i1!="nick"){js.preventDefault()}', "");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "showAds:function(i){if", "showAds:function(i){},showFuck:function(i){if");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "showPromoBadge:function(", "showPromoBadge:function(i){},fuckbacks: function(");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(return\s\w+.tab.toUpperCase\(\)).indexOf\(\w+.toUpperCase\(\)\)!=-1/, "$1 != 'VETERAN'");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /if\(\w+.shouldSkipConfigEntry\(\w+.productIdToQuantify.*visibility\)\)\{continue\}/, "");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "if(this.getSkinsByCategory(i1.tabDescription).length>0", 'if (this.getSkinsByCategory(i1.tabDescription).length > 0 && (i1.tabDescription.toUpperCase() == "PREMIUM" || i1.tabDescription.toUpperCase() == "VETERAN" || i1.tabDescription.toUpperCase() == "OWNED")');
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /var\si2=window.document.createElement..script..+head.appendChild.i2../i, "uBot.reloadCore();");
- _0xf2d5x11 = replaceRegexFile(_0xf2d5x11, /(showFreeCoins:function\(\)\{var.*showContainer\(\);if\(([a-zA-Z0-9]+[a-zA-Z0-9]+.user.userInfo==null).*false\);([a-zA-Z0-9]+[a-zA-Z0-9]+.triggerFreeCoins\(\)).*this.onShopClose\)\)\}},)/, "$1 uBotFreeCoins: function(){if($2){return;}$3;},");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "onPlayerBanned:function(i)", "onPlayerBanned: function(i){},shitfacefuck:function(i)");
- _0xf2d5x11 = replaceNormalFile(_0xf2d5x11, "setPopupActiveState:function(i){", "setPopupActiveState:function(i){console.log('stopped annoying ad');return;");
- eval(_0xf2d5x11);
- var _0xf2d5x7 = new XMLHttpRequest;
- _0xf2d5x7["open"]("GET", "/", true);
- _0xf2d5x7["onload"] = function() {
- var _0xf2d5x2 = _0xf2d5x7["responseText"];
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, "UCC6hurPo_LxL7C0YFYgYnIw", "UC_8Z8vnGJz_9jiTZXIs6izQ");
- _0xf2d5x2 = replaceRegexFile(_0xf2d5x2, /<footer[\S\s]*\/footer>/i, "");
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, '<script src="agario.core.js" async>\x3c/script>', "<div id='botcanvas' style='background:rgba(0,0,0,0.4); width: 200px; top: 5px; left: 9px; display: block; position: absolute; text-align: center; font-size: 15px; color: #ffffff; padding: 5px; font-family: Impact;'> <font color='#7FFF00'>u-Bot.ml</font><br>Bots: <a id='botCount'><font color='red'>0 / 5</font></a><br><font color='#FFFFFF'>A</font> - Move To Mouse: <a id='ismoveToMouse'><font color='#7FFF00'>On</font></a><br><font color='#FFFFFF'>P</font> - Collect Pellets: <a id='collectPellets'><font color='red'>Off</font></a><br><font color='#FFFFFF'>D</font> - Stop Movement: <a id='isStopMove'><font color='red'>Off</font></a></div>");
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, "<body>", '<body onload="uBot.loadCore()">');
- _0xf2d5x2 = replaceRegexFile(_0xf2d5x2, /<script type="text\/javascript" src="mc\/agario\.js.*"><\/script>/i, "");
- _0xf2d5x2 = replaceRegexFile(_0xf2d5x2, /<div id="adsBottom".*display:block;">/i, '<div id="adsBottom" style="display:none">');
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, '<div class="diep-cross" style="', '<div class="diep-cross" style="display:none;');
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, '<div id="promo-badge-container">', '<div id="promo-badge-container" style="display:none;">');
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, '<span data-itr="page_instructions_w"></span><br/>', '<span data-itr="page_instructions_w"></span><br/><span>Press <b>Q</b> to double split</span><br><span>Hold <b>W</b> to rapid fire mass</span><br><span>Press <b>M</b> to hide/show the minimap</span><br><span>Press <b>E</b> to split bots</span><br><span>Press <b>R</b> to eject some bots mass</span><br><span>Press <b>P</b> to make bots collect pellets</span>');
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, '<div id="tags-container">', '<div id="leaders" class="input-group" style="margin-top: 6px;"><span class="input-group-addon" style="width:75px"id="basic-addon1">BOARD</span><input id="leaderboard" type="text" value="" style="width:185px" readonly class="form-control"><button id="leaderboardcopy" class="btn btn-primary" style="float: right; width: 60px; border-radius: 0px 4px 4px 0px;" data-original-title="" title="">Copy</button></div><div class="input-group" style="margin-top: 6px;"><span class="input-group-addon" style="width:75px"id="basic-addon1">UUID</span><input id="uuid" type="text" value="' +
- client_uuid + '" style="width:185px" readonly class="form-control"><button id="uuidcopy" class="btn btn-primary" style="float: right; width: 60px; border-radius: 0px 4px 4px 0px;" data-original-title="" title="">Copy</button></div><div class="input-group" style="margin-top: 6px;"><span class="input-group-addon" style="width:75px" id="basic-addon1">NAMES</span><input id="botnames" class="form-control" style="width:245px" placeholder="Separate bot names using commas" autofocus=""></div><div id="tags-container">');
- _0xf2d5x2 = replaceNormalFile(_0xf2d5x2, "</body>", '<div style="display:block;position:absolute;z-index:100;pointer-events:none;right:9px;bottom:9px;"><canvas id="minimap"></div></body>');
- document["open"]();
- document["write"](_0xf2d5x2);
- uBot["loadCore"]();
- document["close"]();
- };
- _0xf2d5x7["send"]();
- }, b["send"](), setInterval(function() {
- uBot["realPlayerX"] = uBot["mapOffsetX"] + uBot["playerX"];
- uBot["realPlayerY"] = uBot["mapOffsetY"] + uBot["playerY"];
- moveBallOnMinimap("player_pointer", uBot["realPlayerX"], uBot["realPlayerY"]);
- moveBallOnMinimap("player_spectate", uBot["realPlayerX"], uBot["realPlayerY"]);
- }, 50);
- var last_transmited_game_server = null;
- var socket = null;
- setInterval(function() {
- if (!uBot["isAuthorized"]) {
- emitPosition();
- }
- }, 10), setInterval(function() {
- if (uBot["isAuthorized"]) {
- emitPosition();
- }
- emitLocalPosition();
- transmit_current_server(false);
- }, 10);
- window["interval"] = setInterval(function() {
- if (MC["coreWasLoaded"] == true && $("#nick")[0]) {
- clearInterval(interval);
- $("#agarTwitter")["remove"]();
- $("h2")["replaceWith"]("<h2>u-Bot</h2>");
- }
- }, 100);
- function skinHack() {
- this["currentSkin"] = "";
- this["configUrlBase"] = window["EnvConfig"]["config_url"] + "/" + localStorage["getItem"]("last_config_id") + "/";
- this["configUrl"] = this["configUrlBase"] + "GameConfiguration.json";
- this["skinObj"] = {};
- this["rotateInterval"] = 1E3;
- this["playerName"] = "";
- this["canUseScript"] = false;
- this["downloadConfig"]();
- }
- skinHack["prototype"] = {
- downloadConfig : function() {
- var _0xf2d5x38 = this["onDownload"]["bind"](this);
- $["ajax"]({
- type : "GET",
- url : this["configUrl"],
- success : function(_0xf2d5x39) {
- _0xf2d5x38(_0xf2d5x39);
- },
- error : function(_0xf2d5x3a, _0xf2d5x3b, _0xf2d5x3c) {
- }
- });
- },
- onDownload : function(_0xf2d5x39) {
- this["handleSkinData"](_0xf2d5x39);
- this["injectHtml"]();
- this["overrideSetNick"]();
- this["initSkinRotation"]();
- this["updateSkin"]();
- },
- handleSkinData : function(_0xf2d5x39) {
- var _0xf2d5x3d = _0xf2d5x39["gameConfig"]["Shop - Skins"];
- var _0xf2d5x3e = _0xf2d5x39["gameConfig"]["Gameplay - Equippable Skins"];
- var _0xf2d5x3f = 0;
- for (;_0xf2d5x3f < _0xf2d5x3e["length"];_0xf2d5x3f++) {
- var _0xf2d5x40 = _0xf2d5x3e[_0xf2d5x3f];
- this["skinObj"][_0xf2d5x40["productId"]] = {
- image : _0xf2d5x40["image"],
- color : _0xf2d5x40["cellColor"]
- };
- }
- _0xf2d5x3f = 0;
- for (;_0xf2d5x3f < _0xf2d5x3d["length"];_0xf2d5x3f++) {
- _0xf2d5x40 = _0xf2d5x3d[_0xf2d5x3f];
- this["skinObj"][_0xf2d5x40["productIdToQuantify"]]["title"] = _0xf2d5x40["title"];
- }
- },
- injectHtml : function() {
- $("#advertisement")["hide"]();
- $(".agario-promo")["remove"]();
- $(".diep-cross")["remove"]();
- $("#agario-web-incentive")["remove"]();
- $('<div class="agario-panel agario-side-panel"><img id="skinPreview" class="circle bordered"src=""width="96"height="96"style="height: 96px; border: 3px solid rgb(0, 44, 108);margin: 0 auto;"><br><select id="skinsList"class="form-control"onchange="window.skinHack.updateSkin()"required=""></select><br><div id="skinRotator"style="margin: auto"><label>Skin Rotator: </label><div style="left: 13px" class="btn-group btn-toggle"><button class="btn btn-sm active btn-default">ON</button><button class="btn btn-sm active btn-primary">OFF</button></div></div></div>')["insertAfter"](".agario-party");
- this["addSkinOption"]({
- image : "",
- color : "0x00000000",
- title : "Default Skin"
- });
- var _0xf2d5x41;
- for (_0xf2d5x41 in this["skinObj"]) {
- if (this["skinObj"]["hasOwnProperty"](_0xf2d5x41) && this["skinObj"][_0xf2d5x41]["title"]) {
- this["addSkinOption"](this["skinObj"][_0xf2d5x41]);
- }
- }
- $(".btn-toggle")["click"](function() {
- $(this)["find"](".btn")["toggleClass"]("active");
- if ($(this)["find"](".btn-primary")["size"]() > 0) {
- $(this)["find"](".btn")["toggleClass"]("btn-primary");
- }
- if ($(this)["find"](".btn-info")["size"]() > 0) {
- $(this)["find"](".btn")["toggleClass"]("btn-info");
- }
- $(this)["find"](".btn")["toggleClass"]("btn-default");
- });
- this["preLoadSkins"]();
- $("#openfl-content")["click"](this["updateSkin"]["bind"](this));
- },
- preLoadSkins : function() {
- var _0xf2d5x42;
- for (_0xf2d5x42 in this["skinObj"]) {
- if (this["skinObj"]["hasOwnProperty"](_0xf2d5x42)) {
- (new Image)["src"] = this["configUrlBase"] + this["skinObj"][_0xf2d5x42]["image"];
- }
- }
- },
- addSkinOption : function(_0xf2d5x40) {
- _0xf2d5x40["title"] = _0xf2d5x40["title"]["split"]("product_name_skin_")[1];
- $("#skinsList")["append"]('<option value="' + _0xf2d5x40["image"] + ":" + _0xf2d5x40["color"] + '">' + _0xf2d5x40["title"] + "</option>");
- },
- overrideSetNick : function() {
- window["MC"]["_setNick"] = window["MC"]["setNick"];
- window["MC"]["setNick"] = function() {
- var _0xf2d5x43 = arguments[0];
- if (_0xf2d5x43 === "") {
- this["playerName"] = "u-Bot. ml";
- _0xf2d5x43 = "u-Bot. ml";
- console["log"]("Overriding");
- } else {
- this["playerName"] = _0xf2d5x43;
- }
- window["MC"]._setNick(_0xf2d5x43);
- this["updateSkin"]();
- }["bind"](this);
- },
- checkSubscription : function() {
- try {
- if (localStorage["getItem"]("canUseScript")) {
- this["canUseScript"] = JSON["parse"](localStorage["getItem"]("canUseScript")["toLowerCase"]());
- } else {
- localStorage["setItem"]("canUseScript", "false");
- return this["promptSubscription"]();
- }
- if (!this["canUseScript"]) {
- return this["promptSubscription"]();
- }
- return this["canUseScript"];
- } catch (err) {
- console["log"](err);
- }
- },
- promptSubscription : function() {
- var _0xf2d5x44 = window["confirm"]("You must subscribe to Razor to Use The Script");
- if (_0xf2d5x44) {
- var _0xf2d5x45 = window["open"]("https://www.youtube.com/channel/UCANzKlwcB2XqJ6HVJ4jZIJA?sub_confirmation=1", "_blank");
- if (_0xf2d5x45) {
- localStorage["setItem"]("canUseScript", "true");
- this["canUseScript"] = true;
- this["updateSkin"]();
- } else {
- alert("Please allow popups and refresh the page first!");
- }
- }
- return this["canUseScript"]();
- },
- updateSkin : function() {
- var _0xf2d5x46 = $("#skinsList")["val"]()["split"](":");
- var _0xf2d5x47 = _0xf2d5x46[0]["length"] > 0;
- var _0xf2d5x48 = _0xf2d5x47 ? this["configUrlBase"] + _0xf2d5x46[0] : document["getElementsByClassName"]("circle bordered")[0]["src"];
- var _0xf2d5x49 = _0xf2d5x47 ? parseInt(_0xf2d5x46[1]["slice"](0, _0xf2d5x46[1]["length"] - 2)) : parseInt(this["rgbToHex"](document["getElementsByClassName"]("circle bordered")[0]["style"]["borderColor"])["slice"](1, 7), 16);
- var _0xf2d5x43 = this["playerName"];
- window["core"]["registerSkin"](_0xf2d5x43, null, _0xf2d5x48, _0xf2d5x48 ? 2 : 0, _0xf2d5x48 ? _0xf2d5x49 : null);
- $("#skinPreview")["attr"]("src", _0xf2d5x48);
- var _0xf2d5x4a = ["top", "right", "bottom", "left"];
- var _0xf2d5x3f = 0;
- for (;_0xf2d5x3f < array["length"];_0xf2d5x3f++) {
- $("#skinPreview")["css"]("border-" + array[_0xf2d5x3f] + "-color", "#" + _0xf2d5x49.toString(16));
- }
- },
- rgbToHex : function(_0xf2d5x49) {
- if (_0xf2d5x49["substr"](0, 1) === "#") {
- return _0xf2d5x49;
- }
- var _0xf2d5x4b = /(.*?)rgb\((\d+), (\d+), (\d+)\)/["exec"](_0xf2d5x49);
- var _0xf2d5x4c = parseInt(_0xf2d5x4b[2]);
- var _0xf2d5x4d = parseInt(_0xf2d5x4b[3]);
- var _0xf2d5x4e = parseInt(_0xf2d5x4b[4]);
- var _0xf2d5x4f = _0xf2d5x4e | _0xf2d5x4d << 8 | _0xf2d5x4c << 16;
- return _0xf2d5x4b[1] + "#" + _0xf2d5x4f.toString(16);
- },
- initSkinRotation : function() {
- setInterval(function() {
- if ($(".btn-toggle")["find"](".btn-primary")["html"]() === "ON") {
- $("#skinsList")[0]["selectedIndex"] = ($("#skinsList")[0]["selectedIndex"] + 1) % $("#skinsList")[0]["length"];
- this["updateSkin"]();
- }
- }["bind"](this), this["rotateInterval"]);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement