Every zone is ?

This is a challenge script. Use it if you want every zone to look like ? zone. Be careful!!! You can get overleveled if you don't look at the map in the bottom right corner.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Every zone is ?
// @namespace   TankScript
// @match       https://florr.io/*
// @grant       unsafeWindow
// @version     Dev 0.5_1
// @author      -
// @description This is a challenge script. Use it if you want every zone to look like ? zone. Be careful!!! You can get overleveled if you don't look at the map in the bottom right corner.
// ==/UserScript==
const proxy = new Proxy(unsafeWindow.HTMLCanvasElement.prototype.getContext, {
  apply(target, thisArg, args) {
    const ctx = Reflect.apply(...arguments);

    const prototype = Object.getPrototypeOf(ctx);
    const descriptors = Object.getOwnPropertyDescriptors(prototype);

    Object.defineProperties(prototype, {
      fillStyle: {
        get() {
          // console.log("Getting fillStyle");
          return descriptors.fillStyle.get.call(this);
        },

        set(value) {
          // console.log(Setting fillStyle to ${value});
          if (value == "#1EA761") value = "#4D5E56"
          if (value == "#DECF7C") value = "#4D5E56"
          if (value == "#B06655") value = "#4D5E56"
          if (value == "#4D5E56") value = "#4D5E56"
          descriptors.fillStyle.set.call(this, value);
          }
      }
    });

    return ctx;
  }
});

unsafeWindow.HTMLCanvasElement.prototype.getContext = proxy;