Drawaria Minimalistic ++

Это модифицированная версия Drawaria Minimalistic от "𝙎𝙞𝙡𝙡𝙮 𝘾𝙖𝙩`" - от оригинального скрипта почти ничего не осталось, добавлен кастомный фон, темная и светлая тема и убран вырвиглазный градиент. Также можно добавить музыку на фон. Оригинал - https://greasyfork.org/scripts/554305-drawaria-minimalistic

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

You will need to install an extension such as Tampermonkey to install this 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         Drawaria Minimalistic ++
// @namespace    http://tampermonkey.net/
// @version      20260329.2
// @description  Это модифицированная версия Drawaria Minimalistic от "𝙎𝙞𝙡𝙡𝙮 𝘾𝙖𝙩`" - от оригинального скрипта почти ничего не осталось, добавлен кастомный фон, темная и светлая тема и убран вырвиглазный градиент. Также можно добавить музыку на фон. Оригинал - https://greasyfork.org/scripts/554305-drawaria-minimalistic
// @author       Соёлын Үндсэрхэг Эх Оронч (𝙎𝙞𝙡𝙡𝙮 𝘾𝙖𝙩`)
// @match        https://drawaria.online
// @grant        none
// @license MIT
// @supportURL   https://greasyfork.org/scripts/554305-drawaria-minimalistic
// ==/UserScript==

(function() {
    'use strict';

    const bg_url = 'https://images.wallpaperscraft.com/image/single/snow_field_fence_320619_1920x1080.jpg'
    const audio_url = ''
    const dark_theme = true
    const loginbox_dark_theme = false

    const removeSelectors = [
        ".extimages",
        "#gameadsbanner",
        ".sitelogo",
        ".footer",
        "#browserwarning",
        'div[style*="border-top: #00b7ff"]',
        "#yandex_rtb_R-A-669506-1",
        ".row.promlinks"
    ];
    removeSelectors.forEach(sel => document.querySelectorAll(sel).forEach(el => el.remove()));

    const removeThese = [
        "friends-wg",
        "avatarcontainer",
        "continueautosaved-group",
        "playername",
        "playernamebuttons",
        "langselector",
        "accountsettingsmenu"
    ];

    removeThese.forEach(id => {
        const element = document.getElementById(id);
        element.style.display = 'none';
    });

    const table_sm = document.querySelector('.table.table-borderless.table-sm')
    const tbody = table_sm.tBodies[0]
    if (loginbox_dark_theme === true) {
        tbody.style.color = '#111111'
    } else {
        tbody.style.color = '#f4ede4'
    }


    let bgDiv = document.createElement("div");
    bgDiv.id = "bgDiv";
    Object.assign(bgDiv.style, {
        position: "fixed",
        top: "0",
        left: "0",
        width: "100%",
        height: "100%",
        zIndex: "0",
        pointerEvents: "none",
        backgroundSize: "200% 200%",
        transition: "background 0.5s"
    });
    document.body.insertBefore(bgDiv, document.body.firstChild);


    const loginContainer = document.getElementById("login-midcol");
    loginContainer.style.background = "transparent";
    loginContainer.style.position = 'fixed';
    loginContainer.style.right = '10px';
    loginContainer.style.bottom = '10px';

    const pidor = document.getElementById("login-rightcol"); pidor.style.background = "transparent";
    const pidori = document.querySelector('#login-rightcol .loginbox'); pidori.style.background = "transparent";

    const buttons = document.querySelectorAll(".btn");
    buttons.forEach(btn => {
    if (dark_theme === true) {
        btn.style.background = '#111111';
        btn.style.color = "#f4ede4";
    } else {
        btn.style.background = '#f4ede4';
        btn.style.color = "#111111";
    }

    btn.style.fontWeight = "bold";
    btn.style.border = "none";
    });

    bgDiv.style.background = "url('" + bg_url + "')";

    const audio = new Audio(audio_url);
    audio.play();
})();