IWRPG - Cosmetic - Unuglify pancake script

Undo the ugly pancake does

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         IWRPG - Cosmetic - Unuglify pancake script
// @namespace    http://tampermonkey.net/
// @version      2024-07-15
// @description  Undo the ugly pancake does
// @author       You
// @match        https://ironwoodrpg.com/*
// @icon         https://ironwoodrpg.com/assets/misc/quests.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

// JavaScript function to insert CSS after a 2-second delay
setTimeout(function() {
    // Define the CSS as a string
    var css = `
        .customComponent {
            background-color: #0d2234 !important;
        }
        .customComponent * {
            background-color: #0d2234 !important;
        }
        .customComponent .myHeader.lineTop {
            border-top: 1px solid #263849 !important;
        }
        .customMenuButton {
            background-color: #061a2e !important;
            border-bottom: 1px solid #263849 !important;
        }
        .lineLeft {
            border-left: 1px solid #263849;
        }
        .customRow {
            border-top: 1px solid #263849 !important;
        }
        div.scroll.custom-scrollbar .header, div.scroll.custom-scrollbar button {
            height: 56px !important;
        }
        div.scroll.custom-scrollbar img {
            height: 32px !important;
            width: 32px !important;
        }
    `;

    // Create a <style> element
    var style = document.createElement('style');
    style.type = 'text/css';

    // Check if the style element supports the CSS directly
    if (style.styleSheet) {
        style.styleSheet.cssText = css;
    } else {
        style.appendChild(document.createTextNode(css));
    }

    // Append the <style> element to the <head> of the document
    document.head.appendChild(style);
}, 500); // 1000 milliseconds = 2 seconds


})();