Greasy Fork is available in English.

67

67 67

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

Advertisement:

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

Advertisement:

// ==UserScript==
// @name         67
// @namespace    http://tampermonkey.net/
// @version      1.6
// @description  67 67
// @author       startwith
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Wacht tot de pagina geladen is zodat document.body bestaat
    const init = () => {
        if (!document.body) {
            requestAnimationFrame(init);
            return;
        }

        // Maak een onzichtbare overlay aan die het hele scherm vult
        const overlay = document.createElement('div');
        Object.assign(overlay.style, {
            position: 'fixed',
            top: '0',
            left: '0',
            width: '100vw',
            height: '100vh',
            display: 'flex',
            justifyContent: 'center', // Centreert horizontaal
            alignItems: 'center',     // Centreert verticaal
            pointerEvents: 'none',    // Zorgt ervoor dat je overal doorheen kunt klikken
            zIndex: '2147483647'      // Altijd bovenop alle andere elementen
        });

        // Maak het blokje met de tekst '67'
        const container = document.createElement('div');
        container.textContent = 'SIX-SEVEN';

        // Styling van het blokje zelf
        Object.assign(container.style, {
            backgroundColor: 'rgba(0, 0, 0, 0.8)',
            color: '#ffffff',
            padding: '15px 25px',
            fontSize: '32px', // Iets groter gemaakt voor het midden van het scherm
            fontWeight: 'bold',
            fontFamily: 'Arial, sans-serif',
            borderRadius: '10px',
            boxShadow: '0 4px 10px rgba(0,0,0,0.5)',
            textAlign: 'center'
        });

        // Stop het tekstblokje in de overlay, en voeg de overlay toe aan de pagina
        overlay.appendChild(container);
        document.body.appendChild(overlay);
    };

    init();
})();