NitroMath Bot

Automate interactions on NitroMath, this bot does not allow accuracy settings and will play for hours on end without stopping. Also, will run in the background if needed. --NOTE-- If you get banned, we are not responsible. It should be undetectable. Do not use on your main account!

// ==UserScript==
// @name         NitroMath Bot
// @namespace    https://singdev.wixsite.com/sing-developments
// @version      0.6
// @description  Automate interactions on NitroMath, this bot does not allow accuracy settings and will play for hours on end without stopping. Also, will run in the background if needed. --NOTE-- If you get banned, we are not responsible. It should be undetectable. Do not use on your main account! 
// @match        https://www.nitromath.com/play
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  function getNumber(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }

  function solvemath() {
    const body = document.body;
    const offsetX = getNumber(0, body.offsetWidth);
    const offsetY = getNumber(0, body.offsetHeight);

    const event = new MouseEvent('mousemove', {
      bubbles: true,
      clientX: offsetX,
      clientY: offsetY,
    });

    body.dispatchEvent(event);
  }

  function reloadPage() {
    location.reload();
  }


  setInterval(solvemath, 1000);
})();