Cat Mario Fullscreen

Removes all Text and Scales the game Canvas to fill the whole Screen

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 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==
// @name        Cat Mario Fullscreen
// @namespace   Violentmonkey Scripts
// @match       https://catmario.eu/
// @grant       none
// @version     1.0.1
// @author      Der_Floh
// @description Removes all Text and Scales the game Canvas to fill the whole Screen
// @license     MIT
// @icon		https://catmario.eu/icon.ico
// @homepageURL https://greasyfork.org/de/scripts/487289-cat-mario-fullscreen
// @supportURL  https://greasyfork.org/de/scripts/487289-cat-mario-fullscreen/feedback
// ==/UserScript==

const canvas = document.getElementById("canvas");
canvas.style.width = "100%";
canvas.style.maxWidth = "100vw";
canvas.style.height = "100%";
canvas.style.maxHeight = "100vh";

var cssElems = document.head.querySelectorAll("link");
for (const cssElem of cssElems) {
	cssElem.parentNode.removeChild(cssElem);
}

while (document.body.firstChild) {
	document.body.removeChild(document.body.firstChild);
}
document.body.appendChild(canvas);