MineFun FPS Boost Lite

FPS Boost ON/OFF

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

// ==UserScript==
// @name         MineFun FPS Boost Lite
// @namespace    minefun
// @version      1.0
// @description  FPS Boost ON/OFF
// @match        *://minefun.io/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    let enabled = false;

    const btn = document.createElement("button");
    btn.textContent = "FPS BOOST: OFF";
    btn.style.cssText = `
        position:fixed;
        top:10px;
        right:10px;
        z-index:99999;
        padding:8px 12px;
        border:none;
        border-radius:8px;
        background:#222;
        color:white;
        cursor:pointer;
        font-weight:bold;
    `;
    document.body.appendChild(btn);

    let styleEl;

    function enableBoost() {
        if (styleEl) return;

        styleEl = document.createElement("style");
        styleEl.innerHTML = `
            *{
                animation:none !important;
                transition:none !important;
                box-shadow:none !important;
                text-shadow:none !important;
                filter:none !important;
            }
        `;
        document.head.appendChild(styleEl);

        enabled = true;
        btn.textContent = "FPS BOOST: ON";
    }

    function disableBoost() {
        if (styleEl) {
            styleEl.remove();
            styleEl = null;
        }

        enabled = false;
        btn.textContent = "FPS BOOST: OFF";
    }

    btn.onclick = () => {
        enabled ? disableBoost() : enableBoost();
    };
})();