Xero-Bots | .io Bots 2022

The best bots for popular agar.io clone games.

当前为 2022-06-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Xero-Bots | .io Bots 2022
  3. // @namespace https://discord.com/invite/bAstbAfem9
  4. // @version 30.1.1
  5. // @description The best bots for popular agar.io clone games.
  6. // @author Tatsuya & Enes
  7. // @match *.oceanar.io/*
  8. // @match *.aquar.io/*
  9. // @match *.cellsbox.io/*
  10. // @match *.www.inciagario.net/*
  11. // @run-at document-start
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=cellcraft.io
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. function _classCallCheck(instance, Constructor) {
  17. if (!(instance instanceof Constructor)) {
  18. throw new TypeError("Cannot call a class as a function");
  19. }
  20. }
  21.  
  22. var _createClass = function() {
  23. function defineProperties(target, props) {
  24. for (var i = 0; i < props.length; i++) {
  25. var descriptor = props[i];
  26. descriptor.enumerable = descriptor.enumerable || false;
  27. descriptor.configurable = true;
  28. if ("value" in descriptor) descriptor.writable = true;
  29. Object.defineProperty(target, descriptor.key, descriptor);
  30. }
  31. }
  32. return function(Constructor, protoProps, staticProps) {
  33. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  34. if (staticProps) defineProperties(Constructor, staticProps);
  35. return Constructor;
  36. };
  37. }();
  38.  
  39. var _00601 = new(function() {
  40. function _00401() {
  41. _classCallCheck(this, _00401);
  42. }
  43. _createClass(_00401, [{
  44. key: '_00801',
  45. value: function _00801() {
  46. this._00201 = [];
  47. this._00202 = this._00802;
  48. this._00203 = '';
  49. this._00204 = {
  50. 'x': 0,
  51. 'y': 0
  52. };
  53. this._00205 = null;
  54. this._00206 = false;
  55. this._00207 = _00602._00810();
  56. this._00804();
  57. }
  58. }, {
  59. key: '_00802',
  60. get: function _00802() {
  61. let _00300 = /(\w+)\:\/\/(\w+.\w+)/gi.exec(window.location.origin)[2];
  62. if (_00300 == "agma.io" || _00300 == "cellcraft.io" || _00300 == "oceanar.io" || _00300 == "aquar.io") {
  63. return 50;
  64. } else if (_00300 == "cellsbox.io" || _00300 == "www.inciagario") {
  65. return 15;
  66. } else {
  67. return 15;
  68. }
  69. }
  70. }, {
  71. key: '_00803',
  72. get: function _00803() {
  73. return this._00201.filter(bot => bot._00218 && bot._00218.readyState === WebSocket.OPEN).length;
  74. }
  75. }, {
  76. key: '_00804',
  77. value: function _00804() {
  78. for (let _00301 = 0; _00301 < this._00202; _00301++) {
  79. this._00201.push(new _00603())
  80. };
  81. this._00805();
  82. }
  83. }, {
  84. key: '_00805',
  85. value: function _00805() {
  86. this._00302 = setInterval(() => {
  87. if (!_00602._00209) return;
  88. _00602._00816(this._00803, this._00202)
  89. }, 1000)
  90. }
  91. }, {
  92. key: '_00806',
  93. value: function _00806() {
  94. this._00201.forEach((bot) => {
  95. bot._00828()
  96. })
  97. }
  98. }, {
  99. key: '_00807',
  100. value: function _00807() {
  101. this._00201.forEach((bot) => {
  102. bot._00829()
  103. })
  104. }
  105. }, {
  106. key: '_00808',
  107. value: function _00808() {
  108. if (this._00206 || !this._00203) return;
  109. if (this._00203 == undefined) return;
  110. this._00201.forEach((bot) => {
  111. bot._00818(this._00203)
  112. });
  113. this._00206 = true
  114. }
  115. }, {
  116. key: '_00809',
  117. value: function _00809() {
  118. if (!this._00206) return;
  119. this._00201.forEach((bot) => {
  120. bot._00819()
  121. });
  122. this._00206 = false
  123. }
  124. }]);
  125. return _00401;
  126. }())();
  127.  
  128. var _00602 = new(function() {
  129. function _00402() {
  130. _classCallCheck(this, _00402);
  131. }
  132. _createClass(_00402, [{
  133. key: '_00810',
  134. value: function _00810() {
  135. this._00209 = false;
  136. this._00811();
  137. this._00814();
  138. }
  139. }, {
  140. key: '_00811',
  141. value: async function _00811() {
  142. /*
  143. this._00214 = await this._00812();
  144. if (!this._00214) {
  145. return alert('Failed to load bot GUI. If this keeps happening, contact a developer.');
  146. }
  147. */
  148. // I know theres a better way to bypass same-site but im too lazy xd.
  149. this._00214 = `<div class="ay5utdfuf" style=" left: 50%; top: 5px; z-index: 10000; -webkit-transform: translateX(-50%); transform: translateX(-50%); position: absolute; background-color: #3d4247; padding: 5px; border-radius: 0.25rem; display: -webkit-box; display: -ms-flexbox; display: flex; " > <p id="title" style=" user-select: none; box-sizing: border-box; margin: 0; cursor: pointer; font-weight: 700; font-family: CarterOne; text-decoration: none; line-height: 1.5; color: white; margin-right: 5px; font-size: 14px !important; animation: random 5s infinite; padding: 2px 5px !important;">Xero-Bots</p> <p id="casteramount" style=" user-select: none; box-sizing: border-box; margin: 0; font-weight: 700; font-family: CarterOne; text-decoration: none; line-height: 1.5; color: white; margin-right: 5px; font-size: 14px !important; padding: 2px 5px !important;">0 / 0</p> <button class="btn primary small" id="startB" style=" user-select: none; box-sizing: border-box; margin: 0; cursor: pointer; font-weight: 700; font-family: CarterOne; border: 1px solid transparent; transition: color .3s ease, background .3s ease, box-shadow .3s ease, border .3s ease, -webkit-box-shadow .3s ease; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); text-decoration: none; line-height: 1.5; border-radius: .2rem; color: white; background: #007bff; border-color: #007bff; margin-right: 5px; font-size: 14px !important; padding: 2px 5px !important; " > Start Bots </button> <button class="btn secondary small" id="stopB" style = " user-select: none; box-sizing: border-box; margin: 0; cursor: pointer; font-weight: 700; font-family: CarterOne; border: 1px solid transparent; transition: color .3s ease, background .3s ease, box-shadow .3s ease, border .3s ease, -webkit-box-shadow .3s ease; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); text-decoration: none; line-height: 1.5; border-radius: .2rem; color: white; background: #6c757d; border-color: #6c757d; margin-right: 5px; font-size: 14px !important; padding: 2px 5px !important; display: none" > Stop Bots </button> <button id = "toggleBTN" class="btn danger small" style = " user-select: none; box-sizing: border-box; margin: 0; cursor: pointer; font-weight: 700; font-family: CarterOne; border: 1px solid transparent; transition: color .3s ease, background .3s ease, box-shadow .3s ease, border .3s ease, -webkit-box-shadow .3s ease; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); text-decoration: none; line-height: 1.5; border-radius: .2rem; color: white; background: #dc3545; border-color: #dc3545; font-size: 14px !important; padding: 2px 5px !important; margin-right: 0;"> <i class="fas" style = "font-weight: 800;">-</i> </button> </div> <div id="blackout" style=" display: none; width: 100%; height: 100%; z-index: 10000000; background-color: rgba(0, 0, 0, 0.5); position: absolute; top: 0px; left: 0px; " ></div> <div div="" id="popup" style=" width: 300px; height: auto; border-radius: 5px; transform: translate(-50%, -50%) scale(1.25, 1.25); position: absolute; top: 50%; left: 50%; background-color: rgba(0, 0, 0, 0.5); z-index: 100000000; padding: 10px; display: none; " > <h4 style=" margin-top: 5px; margin-bottom: 5px; text-align: center; font-family: Ubuntu; font-size: 17px; color: white; " > Xero-Bots </h4> <hr /> <p style=" text-align: center; font-family: 'Ubuntu'; font-size: 14px; font-weight: 300; color: white; " id="msgpop" ></p> <button style=" width: 100%; height: 30px; border: none; outline: none; border-radius: 2px; background-color: #03e06f; color: white; font-family: Ubuntu; font-weight: 500; " id="okbtn" > Okay </button> </div> <style>@keyframes random { 0% { color: #d63e3e; } 25% { color: yellow; } 50% { color: #03e06f; } 75% { color: #1967fc; } 100% { color: #d63e3e; } }</style> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>`;
  150. this._00813(this._00214);
  151. }
  152. }, {
  153. key: '_00812',
  154. value: async function _00812() {
  155. const _00303 = await fetch('https://uttermost-inky-aardvark.glitch.me/');
  156. if (!_00303.ok) {
  157. return console.log('[GUI STATUS]', _00303);
  158. }
  159. return await _00303.text();
  160. }
  161. }, {
  162. key: '_00813',
  163. value: function _00813(html) {
  164. const _00304 = document.createElement('div');
  165. _00304.innerHTML = html;
  166. document.body.appendChild(_00304);
  167. this._00209 = true;
  168.  
  169. this._00208 = {
  170. 'startButton': this._00815('startB'),
  171. 'stopButton': this._00815('stopB'),
  172. 'botCount': this._00815('casteramount'),
  173. 'DiscordURL': this._00815('title')
  174. };
  175.  
  176. this.bindoff(this._00208.startButton, [this._00208.stopButton, 'block', this._00208.startButton, 'none'], 1);
  177. this.bindoff(this._00208.stopButton, [this._00208.stopButton, 'none', this._00208.startButton, 'block'], 2);
  178. this.bindoff(this._00208.DiscordURL, [], 3);
  179. this.bindoff("okbtn", ['popup', 'none', 'blackout', 'none']);
  180.  
  181. this._00817(
  182. "Webpack Module Successfully initiated."
  183. );
  184. }
  185. }, {
  186. key: 'bindoff',
  187. value: function bindDiv(div, options, binder) {
  188. document.getElementById(div).onclick = () => {
  189. if (binder) {
  190. switch (binder) {
  191. case 1:
  192. _00601._00808();
  193. break;
  194. case 2:
  195. _00601._00809();
  196. break;
  197. case 3:
  198. window.location.href = 'https://discord.gg/bAstbAfem9';
  199. break;
  200. }
  201. }
  202. if (options || options.length > 0) this.getQueryMethod(options[0], options[1], options[2], options[3]);
  203. };
  204. }
  205. }, {
  206. key: '_00814',
  207. value: function _00814() {
  208. window.addEventListener('keypress', (event) => {
  209. switch (event.key) {
  210. case 'q':
  211. _00601._00806();
  212. break;
  213. case 'w':
  214. _00601._00807();
  215. break;
  216. }
  217. });
  218. }
  219. }, {
  220. key: '_00815',
  221. value: function scrambleDiv(div) {
  222. const _00305 = (((1 + Math.random()) * 0x10000) | 0);
  223. document.getElementById(div).id = _00305;
  224. return _00305;
  225. }
  226. }, {
  227. key: 'getQueryMethod',
  228. value: function _00500(div1, style1, div2, style2) {
  229. document.getElementById(div1).style.display = style1;
  230. document.getElementById(div2).style.display = style2;
  231. }
  232. }, {
  233. key: '_00816',
  234. value: function _00816(spawned, max) {
  235. document.getElementById(this._00208.botCount).innerText = spawned + " / " + max
  236. }
  237. }, {
  238. key: '_00817',
  239. value: function _00817(msg) {
  240. document.getElementById("msgpop").innerHTML = msg;
  241. document.querySelector("#popup").style.display = "block";
  242. document.querySelector("#blackout").style.display = "block";
  243. }
  244. }]);
  245. return _00402;
  246. }())();
  247.  
  248. class _00483 {
  249. constructor() {
  250. this.bytes = [];
  251. }
  252. _00361(val) {
  253. this.bytes.push(val);
  254. }
  255. _00395(val) {
  256. this.bytes.push(val & 0xFF);
  257. this.bytes.push(val >> 0x8 & 0xFF);
  258. }
  259. _00795(str) {
  260. this._00395(str.length);
  261. for (var i = 0; i < str.length; i++) {
  262. this._00395(str.charCodeAt(i));
  263. }
  264. }
  265. _00712() {
  266. return new Uint8Array(this.bytes).buffer;
  267. }
  268. }
  269.  
  270. var _00603 = function() {
  271. function _00403() {
  272. _classCallCheck(this, _00403);
  273. this.init();
  274. }
  275. _createClass(_00403, [{
  276. key: 'init',
  277. value: function init() {
  278. this._00215 = /(\w+)\:\/\/(\w+.\w+)/gi.exec(window.location.origin)[2];
  279. this._00216 = {
  280. _00306: ["WGVyby1Cb3Rz", "Qm90cyBieSBUYXRzdXlh", "cmIuZ3kva2FmZ3N3", 'WGVybw=='],
  281. _00307() {
  282. return this._00306[Math.floor(Math.random() * this._00306.length)]
  283. },
  284. grabRecaptchaToken(wss, siteKey, callback) {
  285. return new Promise(async (resolve, reject) => {
  286. const hookGrecaptcha = window.grecaptcha;
  287. if (!hookGrecaptcha) return alert("No recaptcha anchor found!");
  288. hookGrecaptcha.execute(siteKey, callback).then((token) => {
  289. const parsedUrl = wss.split('challenge')[0] + 'challenge=' + token;
  290. resolve(parsedUrl);
  291. });
  292. });
  293. }
  294. }
  295. }
  296. }, {
  297. key: '_00818',
  298. value: async function _00818(url) {
  299. if (this._00834 == 3) {
  300. url = await this._00216.grabRecaptchaToken(url, '6LeBKrcUAAAAAC2X1BwwSPx2uCVrTBF61x3U2FXb', { action: 'playbutton'})
  301. }
  302. this._00217 = url;
  303.  
  304. this._00218 = new WebSocket(url);
  305.  
  306. this._00218.binaryType = "arraybuffer";
  307.  
  308. this._00218.onmessage = this._00820.bind(this);
  309. this._00218.onopen = this._00821.bind(this);
  310. this._00218.onclose = this._00822.bind(this);
  311. this._00218.onerror = this._00823.bind(this);
  312.  
  313. this._00219 = false;
  314. let outsource = atob;
  315.  
  316. this._00220 = Math.floor(Math.pow(2, 14) * Math.random()).toString(36);
  317. this._00221 = outsource(this._00216._00307()) + ' | ' + this._00220;
  318. }
  319. }, {
  320. key: '_00819',
  321. value: function _00819() {
  322. if (this._00218) {
  323. this._00218.close();
  324. delete this._00218;
  325. }
  326. clearInterval(this._00902);
  327.  
  328. clearInterval(this._00900);
  329.  
  330. clearTimeout(this._00901);
  331. }
  332. }, {
  333. key: '_00820',
  334. value: function _00820(message) {}
  335. }, {
  336. key: '_00821',
  337. value: function _00821() {
  338. switch (this._00834) {
  339. case 1:
  340. this._00824();
  341. this._00827();
  342. break;
  343. case 2:
  344. var RawMetatables = {
  345. op: 'clientVersion',
  346. protocolKind: 'TsOgarRx',
  347. protocolSig: 'P2NWmM',
  348. protocolRev: 'orx108'
  349. },
  350. encoded = encodeURIComponent(JSON.stringify(RawMetatables)),
  351. clientSideID = this.GenEnvSig(10);
  352.  
  353. var ClientInfo = new _00483();
  354. ClientInfo._00361(195);
  355. ClientInfo._00795(encoded);
  356. this._00835(ClientInfo._00712());
  357.  
  358. var SendRevs = new _00483();
  359. SendRevs._00361(126);
  360. SendRevs._00795(RawMetatables.protocolKind);
  361. SendRevs._00795(RawMetatables.protocolSig);
  362. SendRevs._00795(RawMetatables.protocolRev);
  363. SendRevs._00795(clientSideID);
  364. this._00835(SendRevs._00712());
  365.  
  366. var ClientData = new _00483();
  367. ClientData._00361(173);
  368. ClientData._00795(this._00221);
  369. this._00835(ClientData._00712());
  370.  
  371. this._00824();
  372. setInterval(this._00830('ZGlzY29yZC5nZy9iQXN0YkFmZW05'), 10000);
  373. break;
  374. case 3:
  375. var Init = this._00832(5);
  376. Init.setUint8(0, 87);
  377. Init.setUint32(1, 1, true);
  378. this._00835(Init);
  379.  
  380. Init = this._00832(5);
  381.  
  382. Init.setUint8(0, 100);
  383. Init.setUint32(1, 1332175218, true);
  384. this._00835(Init);
  385. this._00824();
  386. break;
  387. }
  388. this._00901 = setInterval(this._00824.bind(this), 3000);
  389. this._00902 = setInterval(this._00831.bind(this), 150);
  390. }
  391. }, {
  392. key: '_00822',
  393. value: function _00822() {
  394. clearInterval(this._00902);
  395.  
  396. clearInterval(this._00900);
  397.  
  398. clearTimeout(this._00901);
  399. }
  400. }, {
  401. key: '_00823',
  402. value: function _00823() {}
  403. }, {
  404. key: '_00824',
  405. value: function _00824() {
  406. switch (this._00834) {
  407. case 1:
  408. var _00309 = this._00832(52);
  409. _00309.setUint8(0, 22);
  410. var o = 0;
  411. for (; o < 25; ++o) {
  412. _00309.setUint16(1 + 2 * o, o < this._00221.length ? this._00221.charCodeAt(o) : 0, true);
  413. }
  414. _00309.setUint8(51, 255)
  415. this._00835(_00309, true);
  416. break;
  417. case 2:
  418. this._00835(new Uint8Array([27]));
  419. this._00835(new Uint8Array([33, 3, 1]));
  420. break;
  421. case 3:
  422. var spawnbuf = this._00832(3 + 2 * this._00221.length);
  423. spawnbuf.setUint8(0, 101);
  424. for (var z = 0; z < this._00221.length + 1; ++z) {
  425. spawnbuf.setUint16(1 + 2 * z, this._00221.charCodeAt(z) || 57344, true);
  426. }
  427. this._00835(spawnbuf, true);
  428. break;
  429. }
  430. }
  431. }, {
  432. key: '_00825',
  433. value: function _00825(offset) {
  434. var _00311 = this._00832(1);
  435. _00311.setUint8(0, offset);
  436. this._00835(_00311);
  437. }
  438. }, {
  439. key: '_00827',
  440. value: function _00827() {
  441. let _00313 = 268435455 & Date.now();
  442. let _00314 = this._00832(0x5);
  443. _00314.setUint8(0x0, 0x1);
  444. _00314.setUint32(0x1, _00313);
  445. this._00835(_00314, true);
  446. }
  447. }, {
  448. key: '_00828',
  449. value: function _00828() {
  450. switch (this._00834) {
  451. case 2:
  452. this._00835(new Uint8Array([33, 0, 1]));
  453. break;
  454. case 3:
  455. this._00835(new Uint8Array([17]));
  456. break;
  457. }
  458. }
  459. }, {
  460. key: '_00829',
  461. value: function _00829() {
  462. switch (this._00834) {
  463. case 2:
  464. this._00835(new Uint8Array([33, 1, 255]));
  465. break;
  466. case 3:
  467. this._00835(new Uint8Array([21]));
  468. break;
  469. }
  470. }
  471. }, {
  472. key: '_00830',
  473. value: function _00830(message) {
  474. switch (this._00834) {
  475. case 2:
  476. var _00640 = new _00483(),
  477. f = 0, outsource = atob;
  478. _00640._00361(98);
  479. _00640._00361(f ? 1 : 0);
  480. _00640._00795(outsource(message));
  481. this._00835(_00640._00712());
  482. break;
  483. }
  484. }
  485. }, {
  486. key: '_00831',
  487. value: function _00831() {
  488. switch (this._00834) {
  489. case 1:
  490. case 2:
  491. this._00835(_00601._00205)
  492. break;
  493. case 3:
  494. var MouseBuf = this._00832(21)
  495. MouseBuf.setUint8(0, /*0x7f*/ 104);
  496. MouseBuf.setFloat64(1, _00601._00204.x, true);
  497. MouseBuf.setFloat64(9, _00601._00204.y, true);
  498. MouseBuf.setUint32(17, 0, true);
  499. this._00835(MouseBuf, true);
  500. break;
  501. }
  502. }
  503. }, {
  504. key: '_00832',
  505. value: function _00832(buf) {
  506. return new DataView(new ArrayBuffer(!buf ? 1 : buf))
  507. }
  508. }, {
  509. key: '_00833',
  510. get: function _00833() {
  511. return this._00218 && this._00218.readyState === 1;
  512. }
  513. }, {
  514. key: '_00834',
  515. get: function _00834() {
  516. switch (true) {
  517. case /oceanar.io/.test(this._00215):
  518. case /aquar.io/.test(this._00215):
  519. return 1;
  520. case /cellsbox.io/.test(this._00215):
  521. return 2;
  522. case /www.inciagario/.test(this._00215):
  523. return 3;
  524. }
  525. return 0;
  526. }
  527. }, {
  528. key: 'GenEnvSig',
  529. value: function GenEnvSig(length) {
  530. var result = [];
  531. var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  532. var charactersLength = characters.length;
  533. for (var i = 0; i < length; i++) {
  534. result.push(characters.charAt(Math.floor(Math.random() * charactersLength)));
  535. }
  536. return result.join('');
  537. }
  538. }, {
  539. key: '_00835',
  540. value: function _00835(data, encrypt) {
  541. if (this._00833) {
  542. if (encrypt) {
  543. this._00218.send(data.buffer);
  544. } else this._00218.send(data);
  545. }
  546. }
  547. }]);
  548. return _00403;
  549. }();
  550.  
  551. if (location.host.includes('agma.io') || location.host.includes('cellcraft.io') ||
  552. location.host.includes('agariott.com') || location.host.includes('www.inciagario.net')
  553. ) {
  554. window.WebSocket = class extends WebSocket {
  555. constructor() {
  556. let ws = super(...arguments);
  557. window.sockets?.push(this);
  558.  
  559. setTimeout(() => {
  560. ws.onmessage = new Proxy(ws.onmessage, {
  561. apply(target, thisArg, argArray) {
  562. let data = argArray[0].data;
  563. return target.apply(thisArg, argArray);
  564. }
  565. });
  566. });
  567. }
  568. }
  569.  
  570. WebSocket.prototype.send = new Proxy(WebSocket.prototype.send, {
  571. apply(target, thisArg, argArray) {
  572. var res = target.apply(thisArg, argArray);
  573. let pkt = argArray[0];
  574. if (typeof pkt == 'string') return res;
  575. if (pkt instanceof ArrayBuffer) pkt = new DataView(pkt);
  576. else if (pkt instanceof DataView) pkt = pkt;
  577. else pkt = new DataView(pkt.buffer);
  578. switch (pkt.getUint8(0, true)) {
  579. case 104:
  580. _00601._00204.x = pkt.getFloat64(1, true);
  581. _00601._00204.y = pkt.getFloat64(9, true);
  582. break;
  583. case 0:
  584. switch (pkt.byteLength) {
  585. case 9:
  586. _00601._00205 = pkt;
  587. break;
  588. }
  589. break;
  590. }
  591. if (_00601._00203 !== thisArg.url) {
  592. _00601._00203 = thisArg.url;
  593. }
  594. return res;
  595. }
  596. });
  597. window.addEventListener('load', () => {
  598. _00601._00801();
  599. });
  600. } else {
  601. window.addEventListener('load', () => {
  602. _00601._00801();
  603. WebSocket.prototype.realSend = WebSocket.prototype.send;
  604. WebSocket.prototype.send = function(pkt) {
  605. this.realSend(pkt);
  606. if (typeof pkt == 'string') return;
  607. if (this.url.includes('localhost')) return;
  608. if (pkt instanceof ArrayBuffer) pkt = new DataView(pkt);
  609. else if (pkt instanceof DataView) pkt = pkt;
  610. else pkt = new DataView(pkt.buffer);
  611. switch (pkt.getUint8(0, true)) {
  612. case 185:
  613. _00601._00204.x = pkt.getFloat64(1, true);
  614. _00601._00204.y = pkt.getFloat64(9, true);
  615. break;
  616. case 5:
  617. case 14:
  618. case 239:
  619. _00601._00205 = pkt.buffer;
  620. break;
  621. }
  622. if (_00601._00203 !== this.url) {
  623. _00601._00203 = this.url;
  624. }
  625. };
  626. });
  627. }