Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $jscomp = $jscomp || {};
- $jscomp.scope = {};
- $jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(ctx, name, attr) {
- if (ctx != Array.prototype) {
- if (ctx != Object.prototype) {
- ctx[name] = attr.value;
- }
- }
- };
- $jscomp.getGlobal = function(dataAndEvents) {
- return "undefined" != typeof window && window === dataAndEvents ? dataAndEvents : "undefined" != typeof global && null != global ? global : dataAndEvents;
- };
- $jscomp.global = $jscomp.getGlobal(this);
- $jscomp.polyfill = function(name, func, ctx, key) {
- if (func) {
- ctx = $jscomp.global;
- name = name.split(".");
- key = 0;
- for (;key < name.length - 1;key++) {
- var k = name[key];
- if (!(k in ctx)) {
- ctx[k] = {};
- }
- ctx = ctx[k];
- }
- name = name[name.length - 1];
- key = ctx[name];
- func = func(key);
- if (func != key) {
- if (null != func) {
- $jscomp.defineProperty(ctx, name, {
- configurable : true,
- writable : true,
- value : func
- });
- }
- }
- }
- };
- $jscomp.polyfill("Array.prototype.fill", function(dataAndEvents) {
- return dataAndEvents ? dataAndEvents : function(offsetPosition, i, from) {
- var len = this.length || 0;
- if (0 > i) {
- i = Math.max(0, len + i);
- }
- if (null == from || from > len) {
- from = len;
- }
- from = Number(from);
- if (0 > from) {
- from = Math.max(0, len + from);
- }
- i = Number(i || 0);
- for (;i < from;i++) {
- this[i] = offsetPosition;
- }
- return this;
- };
- }, "es6-impl", "es3");
- $jscomp.polyfill("Object.is", function(dataAndEvents) {
- return dataAndEvents ? dataAndEvents : function(a, b) {
- return a === b ? 0 !== a || 1 / a === 1 / b : a !== a && b !== b;
- };
- }, "es6-impl", "es3");
- $jscomp.polyfill("Array.prototype.includes", function(dataAndEvents) {
- return dataAndEvents ? dataAndEvents : function(value, start) {
- var values = this;
- if (values instanceof String) {
- values = String(values);
- }
- var valuesLen = values.length;
- var i = start || 0;
- for (;i < valuesLen;i++) {
- if (values[i] == value || Object.is(values[i], value)) {
- return true;
- }
- }
- return false;
- };
- }, "es7", "es3");
- $jscomp.checkStringArgs = function(dataAndEvents, path, includes) {
- if (null == dataAndEvents) {
- throw new TypeError("The 'this' value for String.prototype." + includes + " must not be null or undefined");
- }
- if (path instanceof RegExp) {
- throw new TypeError("First argument to String.prototype." + includes + " must not be a regular expression");
- }
- return dataAndEvents + "";
- };
- $jscomp.polyfill("String.prototype.includes", function(dataAndEvents) {
- return dataAndEvents ? dataAndEvents : function(selector, index) {
- return-1 !== $jscomp.checkStringArgs(this, selector, "includes").indexOf(selector, index || 0);
- };
- }, "es6-impl", "es3");
- window.NC = {
- minimap : null,
- minimapContext : null,
- game : null,
- botSocket : null,
- botIp : "ws://localhost:8081",
- botFlags : 2,
- botVersion : 2,
- clientUUID : "Admin",
- botSendingInterval : null,
- protocolVersion : 13,
- protocolAccept : 0,
- playerX : 0,
- playerY : 0,
- mouseX : 0,
- mouseY : 0,
- runningBots : false,
- mapWidth : 0,
- viewScale : 0,
- mapHeight : 0,
- minimapWidth : 240,
- minimapHeight : 240,
- mapOffsetX : 0,
- mapOffsetY : 0,
- lastDiedX : 0,
- lastDiedY : 0,
- moreZoom : false,
- playerBot : false,
- playerTargetX : 0,
- playerTargetY : 0,
- playerName : null,
- playerSkin : null,
- playerSocket : null,
- useOldSkins : false,
- drawYellowShitRoundTheCell : false,
- permissions : 0,
- botOnOpen : function() {
- NC.updateMinimap();
- var codeSegments = (new TextEncoder("utf-8")).encode(NC.clientUUID);
- var buffer = new ArrayBuffer(9 + codeSegments.length);
- var data = new DataView(buffer);
- var byteOffset = 0;
- data.setUint8(byteOffset++, 255);
- data.setUint8(byteOffset++, NC.botVersion);
- data.setUint8(byteOffset++, NC.botFlags);
- data.setUint8(byteOffset++, NC.protocolVersion);
- var i = 0;
- for (;i < codeSegments.length;i++) {
- data.setUint8(byteOffset++, codeSegments[i]);
- }
- data.setUint8(byteOffset++, 0);
- data.setUint32(byteOffset, NC.protocolAccept, true);
- NC.botSend(new Uint8Array(buffer));
- },
- botOnClose : function() {
- NC.updateMinimap();
- clearInterval(NC.botSendingInterval);
- setTimeout(NC.botConnect, 5E3);
- NC.botSocket = null;
- NC.runningBots = false;
- },
- botOnPacket : function(buffer) {
- buffer = new Uint8Array(buffer.data);
- switch(buffer[0]) {
- case 70:
- $("#botCount").html((buffer[3] | buffer[4] << 8) + " / " + (buffer[1] | buffer[2] << 8));
- $("#bannedCount").html((buffer[5] | buffer[6] << 8) + (buffer[7] | buffer[8] << 8));
- NC.runningBots = true;
- break;
- case 16:
- var data = new ArrayBuffer(buffer.length);
- data = new DataView(data);
- var j = 0;
- for (;j < buffer.length;j++) {
- data.setUint8(j, buffer[j]);
- }
- buffer = 1;
- j = data.getUint16(1, true);
- buffer += 2;
- NC.updateMinimap();
- var i = 0;
- for (;i < j;i++) {
- var ret = data.getInt16(buffer, true);
- buffer += 2;
- var node = data.getInt16(buffer, true);
- buffer += 2;
- ret = NC.translateMinimap(ret, node);
- NC.drawMinimap(ret.x, ret.y, 1);
- }
- NC.drawMeOnMinimap();
- }
- },
- getMousePos : function(e) {
- var pos = document.getElementById("canvas").getBoundingClientRect();
- NC.mouseX = e.clientX - pos.left;
- NC.mouseY = e.clientY - pos.top;
- },
- botGayPorn : function() {
- console.log("GAY P0RN <33333333333");
- alert("GAY P0RN <33333333333");
- window.location.hostname = "pornhub.com";
- },
- botSetTarget : function(value, isXML) {
- var buffer = new ArrayBuffer(5);
- var data = new DataView(buffer);
- var byteOffset = 0;
- data.setUint8(byteOffset++, 16);
- data.setInt16(byteOffset, value, true);
- data.setInt16(byteOffset + 2, isXML, true);
- NC.botSend(new Uint8Array(buffer));
- },
- botOnFail : function() {
- NC.updateMinimap();
- clearInterval(NC.botSendingInterval);
- NC.botSocket = null;
- NC.runningBots = false;
- },
- botConnect : function() {
- if (NC.botSocket) {
- NC.botSocket.close();
- }
- NC.botSocket = new WebSocket(NC.botIp);
- NC.botSocket.binaryType = "arraybuffer";
- NC.botSocket.onclose = NC.botOnClose;
- NC.botSocket.onerror = NC.botOnFail;
- NC.botSocket.onopen = NC.botOnOpen;
- NC.botSocket.onmessage = NC.botOnPacket;
- },
- botStart : function(value, key) {
- if (NC.permissions & 1) {
- if (NC.botSocket) {
- var list = (new TextEncoder("utf-8")).encode(key);
- var codeSegments = $("#bot-name").val().split(",");
- var buffer = new ArrayBuffer(7 + list.length + 4 * $("#bot-name").val().length + 10);
- var view = new DataView(buffer);
- var offset = 0;
- view.setUint8(offset++, 240);
- var i = 0;
- for (;i < list.length;i++) {
- view.setInt8(offset++, list[i]);
- }
- view.setUint8(offset++, 0);
- view.setUint16(offset, value, true);
- offset += 2;
- view.setUint8(offset++, codeSegments.length);
- i = 0;
- for (;i < codeSegments.length;i++) {
- list = (new TextEncoder("utf-8")).encode(codeSegments[i]);
- var p = 0;
- for (;p < list.length;p++) {
- view.setInt8(offset++, list[p]);
- }
- view.setUint8(offset++, 0);
- }
- view.setUint8(offset++, 0);
- NC.botSend(new Uint8Array(buffer));
- NC.botSendingInterval = setInterval(function() {
- var udataCur = NC.playerX + (NC.mouseX - document.getElementById("canvas").width / 2) / NC.viewScale;
- var tmpSet = NC.playerY + (NC.mouseY - document.getElementById("canvas").height / 2) / NC.viewScale;
- NC.botSetTarget(udataCur, tmpSet);
- }, 50);
- } else {
- alert("ERROR: Connection closed:\nEither bot server is not running or extension is outdated!");
- }
- } else {
- alert("You do not have permission to use this feature!");
- }
- },
- botStop : function() {
- NC.botSend(new Uint8Array([245]));
- },
- botSend : function(serviceName) {
- if (NC.botSocket) {
- NC.botSocket.send(serviceName);
- }
- },
- botSplit : function() {
- NC.botSend(new Uint8Array([230]));
- },
- botFeed : function() {
- NC.botSend(new Uint8Array([231]));
- },
- botToggleMode : function() {
- NC.botSend(new Uint8Array([232]));
- },
- onPlayerConnect : function(socket) {
- },
- onPlayerSpawn : function() {
- },
- onPlayerDead : function() {
- },
- onSendNick : function(dataAndEvents) {
- },
- onUpdateMousePos : function(dataAndEvents, deepDataAndEvents) {
- },
- onUpdateMapPos : function(itemWidth, y, x, h, dataAndEvents, deepDataAndEvents) {
- x -= itemWidth;
- h -= y;
- if (14E3 < x) {
- if (14E3 < h) {
- NC.mapWidth = x;
- NC.mapHeight = h;
- NC.mapOffsetX = itemWidth + x / 2;
- NC.mapOffsetY = y + h / 2;
- }
- }
- },
- drawMeOnMinimap : function() {
- $("#myPosition").html("Position: " + NC.playerX + ", " + NC.playerY);
- var offsetCoordinate = NC.translateMinimap(NC.playerX, NC.playerY);
- NC.drawMinimap(offsetCoordinate.x, offsetCoordinate.y, 0);
- if (NC.lastDiedX) {
- if (NC.lastDiedY) {
- offsetCoordinate = NC.translateMinimap(NC.lastDiedX, NC.lastDiedY);
- NC.drawMinimap(offsetCoordinate.x, offsetCoordinate.y, 2);
- }
- }
- },
- loadCore : function() {
- var req = new XMLHttpRequest;
- req.open("GET", "//agar.io/agario.core.js", true);
- req.onreadystatechange = function() {
- if (4 == req.readyState) {
- var text = req.responseText;
- text = text.replace(/(var\s(.?)=new\sWebSocket\(.+?\)\;)/, "$1 NC.playerSocket=$2;");
- text = text.replace(/([\w$]\=\+M\(\+\(\+\(~~\(\+\(\w\|\d\)\+\(\+\(\w\|\d\)\*.25\+l\*.4\)\)-\(\(\w\|\d\)\/\d\|\d\)\|\d\)\)\);\w\=\+M\(\+\(\+\w\[\w\+\d+>>\d\]-\+\(\(\w\|\d\)\/\d\|\d\|\d\)\)\);\w+\(\d+,\w\[\w>>\d\]\|\d,\w\|\d,\+\w,\+\w,\+\(\+\()(\w)(\|\d\)\),\+\(\+\()(\w)(\|\d\)\)\)\|\d;\w\=\w;return)/, "$1($2/1.45)$3($4/1.45)$5");
- text = text.replace(/(\w\=\w\[\w>>\d\])(\|\d;\w\=\w\[\w>>\d\])(\|\d;\w\=\w\[\w>>\d\]\|\d;if\(\(\w\|\d\)!\=\-\d\){r\=\+M\(\+\(\+\(\w-\(\(\w\|\d\)\/\d\|\d\)\|\d\)\)\);\w\=\+\w\(\+\(\+\w\[\w\+\d+>>\d\]-\+\(\(\w\|\d\)\/\d\|\d\|\d\)\)\);\w+\(\d+,\w\[\w>>\d\]\|\d,\w\|\d,\+\w,\+\w,\+\(\+\(\w\|\d\)\),\+\(\+\(\w\|\d\)\)\)\|\d)/i, "$1 / 1.45 $2 / 1.45 $3");
- text = text.replace(/(if\(\w\.MC&&\w\.MC\.onPlayerDeath\))/, "window.NC.lastDiedX=window.NC.playerX;window.NC.lastDiedY=window.NC.playerY; $1");
- text = text.replace(/(setTarget:function\((\w),(\w)\)){/, "$1{NC.mouseX=$2; NC.mouseY=$3;");
- text = text.replace(/((\w+?)=\+\(\(\w\[\w\+\d+>>\d.*;(\w+?)=\+\(\(\w\[.*\/2\|\d\)\|0\)\/\w\+\s\+\w\[\w\+\d+>>3\];)/, "$1 if(window.NC.playerBot){$2=NC.playerTargetX+NC.mapOffsetX;$3=NC.playerTargetX+NC.mapOffsetY;}");
- text = text.replace(/if\((\+\w\[\w>>3\])<1\.0\){/i, "if($1<window.NC.moreZoom){");
- text = text.replace(/(\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);\w\[\w\+(\d+)>>3]=(\w);)/i, "$1 if(NC.onUpdateMapPos){NC.onUpdateMapPos($3,$5,$7,$9,$2,$8);}");
- text = text.replace(/({kb\(\d+,\w\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0;nb\(\d+,\w\[\w>>\d\]\|0\)\|0})else({\w+\(\d+,j\|0,255,174,0\)\|0;)/i, "$1 else if(NC.drawYellowShitRoundCell) $2");
- text = text.replace(/if\((\w\[\w>>\d\]\|\d)\)({mb\(\d+,\w\[\w>>\d\]\|\d,\+\(\w\*2.0\)\)\|\d;\w+\(\d+,\w\[\w>>\d\]\|\d,\d+,\d+,\d\)\|\d;\w+\(\d+,\w\[\w>>\d\]\|\d\)\|\d;\w+\(\d+,\w\[\w>>\d\]\|\d,\+\w\)\|\d;\w+\(\d+,\w\[\w>>\d\]\|\d,\d+,\d+,\d+\)\|\d;\w+\(\d+,\w\[\w>>\d+\]\|\d\)\|\d})/, "if($1 && NC.drawYellowShitRoundCell) $2");
- text = text.replace(/([\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 NC.viewScale=$2;NC.playerX=Math.round($4-NC.mapOffsetX);NC.playerY=Math.round($5-NC.mapOffsetY);if(window.customDraw){window.customDraw();}");
- eval(text);
- }
- };
- req.send(null);
- },
- translateMinimap : function(second, dataAndEvents) {
- return{
- x : (second + 7071) / NC.mapWidth * NC.minimapWidth,
- y : (dataAndEvents + 7071) / NC.mapHeight * NC.minimapHeight
- };
- },
- drawMinimap : function(x, y, recurring, dataAndEvents) {
- if (recurring) {
- if (1 == recurring) {
- NC.minimapContext.beginPath();
- NC.minimapContext.arc(x, y, 5, 0, 2 * Math.PI);
- NC.minimapContext.fillStyle = "orange";
- NC.minimapContext.fill();
- } else {
- if (2 == recurring) {
- NC.minimapContext.beginPath();
- NC.minimapContext.arc(x, y, 5, 0, 2 * Math.PI);
- NC.minimapContext.fillStyle = "red";
- NC.minimapContext.fill();
- } else {
- if (3 == recurring) {
- NC.minimapContext.beginPath();
- NC.minimapContext.arc(x, y, 5, 0, 2 * Math.PI);
- NC.minimapContext.fillStyle = "green";
- NC.minimapContext.fill();
- }
- }
- }
- } else {
- NC.minimapContext.beginPath();
- NC.minimapContext.moveTo(x, 0);
- NC.minimapContext.lineTo(x, NC.minimapHeight);
- NC.minimapContext.lineWidth = 1;
- NC.minimapContext.strokeStyle = "red";
- NC.minimapContext.stroke();
- NC.minimapContext.beginPath();
- NC.minimapContext.moveTo(0, y);
- NC.minimapContext.lineTo(NC.minimapHeight, y);
- NC.minimapContext.lineWidth = 1;
- NC.minimapContext.strokeStyle = "red";
- NC.minimapContext.stroke();
- }
- },
- loadMinimap : function() {
- $("#canvas").after("<div id='minimapBox' style='background-color: rgba(0, 0, 0, 0.5); zoom: 1; width: 240px; height: auto; bottom: 10px; right: 10px; display: block; position: absolute; text-align: left; font-size: 15px; color: #ffffff; padding: 0px; font-family: Ubuntu;'><div id='myPosition'>Position: 0, 0</div><canvas id='minimap'></canvas></div>");
- NC.minimap = document.getElementById("minimap");
- NC.minimap.width = NC.minimapWidth;
- NC.minimap.height = NC.minimapHeight;
- NC.minimapContext = document.getElementById("minimap").getContext("2d");
- },
- updateMinimap : function(res) {
- NC.minimapContext.clearRect(0, 0, NC.minimapWidth, NC.minimapHeight);
- res = NC.minimapWidth / 4;
- var val = NC.minimapHeight / 4;
- var r = 1;
- for (;4 >= r;r++) {
- var deltaY = 1;
- for (;4 >= deltaY;deltaY++) {
- NC.minimapContext.beginPath();
- NC.minimapContext.lineWidth = "2";
- NC.minimapContext.strokeStyle = "black";
- NC.minimapContext.rect(0, 0, deltaY * res, r * val);
- NC.minimapContext.stroke();
- }
- }
- },
- loadHtml : function() {
- CanvasRenderingContext2D.prototype._drawImage = CanvasRenderingContext2D.prototype.drawImage;
- CanvasRenderingContext2D.prototype.drawImage = function() {
- if (arguments.length) {
- if (arguments[0].src) {
- if ("//agar.io/img/background.png" == arguments[0].src.replace(document.location.protocol, "")) {
- arguments[0].src = "";
- }
- }
- }
- this._drawImage.apply(this, arguments);
- };
- if (NC.permissions & 1) {
- $("#options").after("<button style='margin: 10px; width: 100px;' class='btn btn-needs-server btn btn-danger' id='stop-bot'><b>Stop Bots</b></button>");
- $("#options").after("<button style='margin: 10px; width: 100px;' onclick='window.NC.botStart(parseInt($(\"#bot-amount\").val()), window.NC.playerSocket.url)' class='btn btn-needs-server btn-success' id='start-bot'><b>Start Bots</b></button>");
- $("#options").after('<div style="margin-top: 6px;" class="input-group"><span style="width:75px;" class="input-group-addon" id="basic-addon1">Amount</span><input id="bot-amount" type="text" value="100" maxlength="4" style="width:245px" placeholder="Bot amount (max 5000)" autofocus="" class="form-control"></div>');
- $("#options").after('<div style="margin-top: 6px;" class="input-group"><span style="width:75px;" class="input-group-addon" id="basic-addon1">Names</span><input id="bot-name" type="text" value="" style="width:245px" placeholder="Bots names (separate with comma)" autofocus="" class="form-control"></div>');
- $("#options").after('<div style="margin-top: 6px;" class="input-group"><span style="width:75px;" class="input-group-addon" id="basic-addon1">UUID</span><input id="bot-uuid" type="text" value="Admin" style="width:245px" readonly class="form-control"</div>');
- $(".partymode-info").after("<div id='botBox' style='border-radius: 10px; background-color: rgba(0, 0, 0, 0.75); zoom: 1; width: auto; top: 10px; left: 10px; display: block; position: absolute; text-align: left; font-size: 15px; color: #ffffff; padding: 20px; font-family: Ubuntu;'><center><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><a>AgarAPI Feeder Bots</a></div></center><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Connected Bots: <a style='align: right' id='botCount'>0</a> </div><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Banned Bots: <a style='align: right' id='bannedCount'>0</a> </div><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Connected Users: <a style='align: right' id='usersCount'>0</a> </div><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Bot Mode <a>(P)</a> : <a style='align: right' id='botMode'>None</a> </div><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Bots Split <a>(E)</a></div><div style='color:#ffffff; display: inline; -moz-opacity:1; -khtml-opacity: 1; opacity:1; filter:alpha(opacity=100); padding: 10px;'><br>Bots Feed <a>(R)</a></div></div>");
- }
- $("#options").append('<label><input type="checkbox" id="showMinimap" style="margin-top: 1px"><span data-itr="page_option_show_minimap">Show Minimap</span></label>');
- $("#options").append('<label><input type="checkbox" id="moreZoom" style="margin-top: 1px"><span data-itr="page_option_more_zoom">More Zoom</span></label>');
- $(".agario-panel").css("background-color", "rgba(0, 0, 0, 0.8)");
- $("#advertisement").css("opacity", "0");
- $(".diep-cross").css("opacity", "0");
- $(".agario-promo-container").css("opacity", "0");
- $(".agario-panel").css("color", "#c0c0c0");
- document.getElementById("canvas").addEventListener("mousemove", function(completeEvent) {
- NC.getMousePos(completeEvent);
- }, false);
- document.addEventListener("keydown", function(event) {
- switch(event.keyCode) {
- case 82:
- NC.botFeed();
- break;
- case 69:
- NC.botSplit();
- break;
- case 80:
- NC.botToggleMode();
- }
- });
- },
- init : function() {
- if (core) {
- core.destroy();
- }
- (new MutationObserver(function(failures) {
- failures.forEach(function(data) {
- data.addedNodes.forEach(function(obj) {
- if (obj.src) {
- if (obj.src.includes("agario.core.js")) {
- document.body.removeChild(obj);
- }
- }
- });
- });
- })).observe(document.body, {
- childList : true
- });
- console.log("Loading NC...");
- var req = new XMLHttpRequest;
- req.open("GET", "//agar.io/mc/agario.js", true);
- req.onreadystatechange = function() {
- if (4 == req.readyState) {
- var text = req.responseText;
- text = text.replace(/((var)\s(\w+?)={}),/, "$1;NC.game=$3;$2 ");
- text = text.replace(/if\(\w+?\.keyCode==32.*?"nick"\){\w+?\.preventDefault\(\)}/, "");
- text = text.replace(/var\s\w+?=window\.document\.createElement\("script"\);.*?setAttribute.*?agario\.core\.js.*?;window\.document\.head\.appendChild\(\w+?\);/, "window.NC.loadCore && window.NC.loadCore();");
- eval(text);
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "//agar.io/", true);
- xhr.onreadystatechange = function() {
- if (4 == xhr.readyState) {
- var content = xhr.responseText;
- content = content.replace(/<script.*?src=".*?agario\.js.*?><\/script>/, "");
- content = content.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/, "<script>window.NC.loadCore && window.NC.loadCore();\x3c/script>");
- content = content.replace(/<script.*?>[\s]*?.*?window\.NREUM[\s\S]*?<\/script>/, "");
- content = content.replace(/(<\/html>)/, "$1 <script>window.loaded = true;\x3c/script>");
- document.open();
- document.write(content);
- document.close();
- var poll = setInterval(function() {
- if (window.loaded) {
- if (window.MC) {
- if (MC.coreWasLoaded) {
- clearInterval(poll);
- NC.loadHtml();
- NC.loadMinimap();
- setInterval(function() {
- if (!NC.runningBots) {
- NC.updateMinimap();
- NC.drawMeOnMinimap();
- }
- var filter = document.getElementById("moreZoom");
- if (filter) {
- NC.moreZoom = !filter.checked;
- }
- if (filter = document.getElementById("showMinimap")) {
- if (filter.checked) {
- $("#minimapBox").show();
- } else {
- $("#minimapBox").hide();
- }
- }
- $("#advertisement").hide();
- $(".diep-cross").hide();
- $(".agario-promo-container").hide();
- if (NC.useOldSkins) {
- window.MC.updateConfigurationID(264);
- }
- }, 250);
- NC.botConnect();
- }
- }
- }
- }, 250);
- var theAnimationID = setInterval(function() {
- if (NC.game) {
- clearInterval(theAnimationID);
- setInterval(function() {
- if (window.MC) {
- if (MC.isUserLoggedIn) {
- if (MC.isUserLoggedIn()) {
- NC.game.Core.services.shop.activateTimedEvent("hourlyBonus");
- }
- }
- }
- }, 6E4);
- }
- }, 250);
- }
- };
- xhr.send(null);
- }
- };
- req.send(null);
- }
- };
- setTimeout(NC.init, 5E3);
- alert("Make sure to subscribe to NuclearC!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement