Sleazy Fork is available in English.

MineFun FPS Boost Lite

FPS Boost ON/OFF

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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();
    };
})();