Panzoid Clipmaker Custom Style

Custom style for Panzoid Clipmaker 3

目前為 2024-09-09 提交的版本,檢視 最新版本

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

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

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

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

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

})();