Minefun Full Bright

full bright with levels (press "." )

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Minefun Full Bright
// @namespace    http://tampermonkey.net/
// @author       quang
// @version      1.4
// @description  full bright with levels (press "." )
// @match        *://minefun.io/*
// @grant        none
// @license      VN
// ==/UserScript==
 
(function () {
    'use strict';
 
    let level = 0;
    let styleTag = null;
 
    const levels = [
        '',
 
        /* Level 1 – Creative vanilla */
        `
        canvas {
            filter: brightness(1.18) contrast(1.04) saturate(1.08) !important;
        }
        `,
 
        /* Level 2 – Creative+ (recommended) */
        `
        canvas {
            filter: brightness(1.28) contrast(1.06) saturate(1.10) !important;
        }
        `,
 
        /* Level 3 – Cave clear */
        `
        canvas {
            filter: brightness(1.38) contrast(1.08) saturate(1.12) !important;
        }
        `,
 
        /* Level 4 – Ultra bright */
        `
        canvas {
            filter: brightness(1.48) contrast(1.10) saturate(1.14) !important;
        }
        `,
 
        /* Level 5 – MAX BRIGHT (very strong) */
        `
        canvas {
            filter: brightness(1.60) contrast(1.12) saturate(1.16) !important;
        }
        `
    ];
 
    function applyLevel() {
        if (styleTag) styleTag.remove();
 
        if (level === 0) {
            styleTag = null;
            console.log('[FULL BRIGHT] OFF');
            return;
        }
 
        styleTag = document.createElement('style');
        styleTag.innerHTML = `
            ${levels[level]}
 
            /* Remove darkness overlays */
            canvas + div,
            div[style*="rgba(0, 0, 0"],
            div[style*="box-shadow"] {
                background: transparent !important;
                box-shadow: none !important;
            }
        `;
        document.head.appendChild(styleTag);
        console.log('[FULL BRIGHT] LEVEL', level);
    }
 
    document.addEventListener('keydown', e => {
        if (e.key === '.') {
            level = (level + 1) % 6; // 0 → 5
            applyLevel();
        }
    });
})();