Minefun → Minecraft Style 🧱

Biến minefun thành phong cách Minecraft (visual)

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         Minefun → Minecraft Style 🧱
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Biến minefun thành phong cách Minecraft (visual)
// @match        *://minefun.io/*
// @match        *://*.minefun.io/*
// @grant        none
// ==/UserScript==

(function(){
'use strict';

let on=false;

const btn=document.createElement("div");
btn.innerHTML="🧱";
btn.style.position="fixed";
btn.style.top="120px";
btn.style.left="120px";
btn.style.width="60px";
btn.style.height="60px";
btn.style.background="#3b7a3b";
btn.style.border="4px solid #2a5a2a";
btn.style.fontFamily="monospace";
btn.style.color="#fff";
btn.style.display="flex";
btn.style.alignItems="center";
btn.style.justifyContent="center";
btn.style.cursor="pointer";
btn.style.zIndex="999999";

document.body.appendChild(btn);

const style=document.createElement("style");
style.innerHTML=`

body.minecraft canvas{
image-rendering: pixelated !important;
filter: contrast(1.2) saturate(1.1) brightness(0.95);
}

body.minecraft *{
font-family: monospace !important;
}

body.minecraft::before{
content:'';
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:none;
background:url('https://i.imgur.com/8Qx4K3X.png');
opacity:0.2;
mix-blend-mode:multiply;
}

`;

document.head.appendChild(style);

btn.onclick=()=>{
on=!on;
document.body.classList.toggle("minecraft",on);
btn.style.background=on?"#2a5a2a":"#3b7a3b";
};

})();