Assault Bots No cost

Assautl Bots hack script - Free weapons, skins, attachments

// ==UserScript==
// @name         Assault Bots No cost
// @version      0.1.1
// @description  Assautl Bots hack script - Free weapons, skins, attachments
// @author       nekocell
// @namespace    https://greasyfork.org/ja/users/762895-nekocell
// @match        https://games.crazygames.com/*/bot-machines/index.html
// @icon         https://www.google.com/s2/favicons?domain=crazygames.com
// @run-at       document-start
// ==/UserScript==

!function(open) {
  XMLHttpRequest.prototype.open = function() {

    this.addEventListener('load', () => {

      if(this.responseType !== 'arraybuffer' || !this.response) {
        return;
      }

      let text = (new TextDecoder).decode(this.response);

      if(!text.includes('"prices"')) {
        return;
      }

      text = text.replace(/(?<="cost":)\d+/g, '0');

      Object.defineProperty(this, 'response', {
        writable: true
      });

      this.response = (new TextEncoder).encode(text);
    });

    open.apply(this, arguments);
  };
}(XMLHttpRequest.prototype.open);