Cat Mario Fullscreen

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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);