IWRPG - Cosmetic - Unuglify pancake script

Undo the ugly pancake does

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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


})();