Drawaria Minimalistic ++

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

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         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();
})();