Omegle Dark Mode

Applies a dark mode look to Omegle. Change, use, modify the code as you wish, but if you post this script anywhere (modified or not), you MUST inform me. Failure to do so will be considered a violation of copyright laws and will be reported accordingly.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Omegle Dark Mode
// @namespace    http://www.example.com/
// @version      1.1
// @license MIT
// @description  Applies a dark mode look to Omegle. Change, use, modify the code as you wish, but if you post this script anywhere (modified or not), you MUST inform me. Failure to do so will be considered a violation of copyright laws and will be reported accordingly.
// @author       Cxsty
// @match        https://www.omegle.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    // Apply custom CSS styles
    GM_addStyle(`
        body {
            background-color: #181818 !important;
            color: #d1d1d1 !important;
        }

        #header {
            background-color: #000000 !important;
        }

        #header img {
            filter: invert(1) !important;
        }

        #logbox {
            background-color: #282828 !important;
            border-radius: 10px !important;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2) !important;
        }

        #logbox p {
            color: #d1d1d1 !important;
        }

        /* Customize more styles as needed */
    `);

    // Modify elements and structure as needed
    function customizeOmegle() {
        // Example: Change logo image
        const logoImage = document.querySelector('#header img');
        if (logoImage) {
            logoImage.src = 'https://example.com/custom-logo.png';
        }

        // Example: Add custom footer
        const footerContainer = document.createElement('div');
        footerContainer.innerHTML = `
            <div style="text-align: center;">
                <p>Custom Footer</p>
            </div>
        `;
        document.body.appendChild(footerContainer);
    }

    // Wait for the Omegle page to fully load
    function waitForPageLoad() {
        const chatElement = document.querySelector('#chatbox');
        if (chatElement) {
            customizeOmegle();
        } else {
            setTimeout(waitForPageLoad, 1000);
        }
    }

    waitForPageLoad();
})();