Crazy games button

A always visible button to open crazy games it is on the bottom left.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Crazy games button
// @namespace    Violentmonkey Scripts
// @version      1.2
// @description  A always visible button to open crazy games it is on the bottom left.
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const GAME_URL = 'https://www.crazygames.com/game/tunnel-rush';

    // Maak knop
    const button = document.createElement('div');
    button.innerText = '🎮';
    Object.assign(button.style, {
        position: 'fixed',
        bottom: '20px',
        left: '20px',
        zIndex: '99999',
        backgroundColor: '#111',
        color: '#fff',
        padding: '10px 14px',
        borderRadius: '8px',
        fontSize: '14px',
        fontFamily: 'Arial, sans-serif',
        cursor: 'pointer',
        boxShadow: '0 2px 10px rgba(0,0,0,0.5)',
        userSelect: 'none',
    });
    document.body.appendChild(button);

    // Klik → open popup
    button.addEventListener('click', () => {
        window.open(GAME_URL, '_blank', 'width=1000,height=700');
    });
})();