Greasy Fork is available in English.

Mxo New Bot Librarys/Depencens - Task Processor

For Mxo New Bot - Library/Depencens

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/465120/1185626/Mxo%20New%20Bot%20LibrarysDepencens%20-%20Task%20Processor.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @version      1.0
// @author       https://github.com/bababoyy
// @license      GPL-3.0
// ==/UserScript==
onmessage = function (v) {
  var args = v.data;
  var tasks = [];
  for (let yAxis = 0; yAxis < args.image.length; yAxis++) {
    for (let xAxis = 0; xAxis < args.image[yAxis].length; xAxis++) {
      let pixel = args.image[yAxis][xAxis];
      let [x, y] = args.coords;
      x += xAxis;
      y += yAxis;
      var color = pixel.charCodeAt(0) - "0".charCodeAt(0);
      if (color == 64) {
        continue;
      }
      tasks.push({
        x: x,
        y: y,
        color: color,
      });
    }
  }
  postMessage(tasks);
};