Panzoid Clipmaker Custom Style

Custom style for Panzoid Clipmaker 3

当前为 2024-09-09 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Panzoid Clipmaker Custom Style
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Custom style for Panzoid Clipmaker 3
// @author       You
// @match        https://panzoid.com/tools/gen3/clipmaker
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Inject custom CSS for Panzoid Clipmaker
    const css = `
        /* Custom Scrollbar Style */
        ::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }

        ::-webkit-scrollbar-track {
            background-color: #222;
        }

        ::-webkit-scrollbar-thumb {
            background-color: #555;
        }

        /* Custom background color for the container */
        #container {
            background-color: #1a1a1a !important;
        }

        /* Custom header styling */
        .header {
            background-color: #000 !important;
            color: #fff !important;
            padding: 20px;
            font-size: 18px;
        }

        /* Style for editor and preview panes */
        #panecontainer {
            display: flex;
            height: 100vh;
            background-color: #111;
        }

        #editorpane, #previewpane {
            border: 1px solid #333;
            margin: 10px;
        }

        #editorpane {
            width: 50%;
            background-color: #222;
        }

        #previewpane {
            width: 50%;
            background-color: #111;
        }

        /* Styling for canvas and preview */
        #c_main {
            width: 100%;
            height: 100%;
            background-color: #000;
        }

        /* Button customization */
        button {
            background-color: #444;
            color: #fff;
            border: none;
            padding: 10px;
            cursor: pointer;
        }

        button:hover {
            background-color: #555;
        }
    `;

    // Create a style element and inject CSS
    const style = document.createElement('style');
    style.type = 'text/css';
    style.appendChild(document.createTextNode(css));

    // Append the style to the document head
    document.head.appendChild(style);

})();