Google Slides Advanced UI Enhancements

Enhances Google Slides UI with Material Design Lite, custom shapes, tools, and animations inspired by PowerPoint

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Google Slides Advanced UI Enhancements
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Enhances Google Slides UI with Material Design Lite, custom shapes, tools, and animations inspired by PowerPoint
// @author       You
// @match        https://docs.google.com/presentation/*
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Apply custom styles
    GM_addStyle(`
        /* Make UI elements bigger and rounder */
        .docs-title-input, .docs-title-input-container, .docs-explore-button, .docs-material-button {
            font-size: 1.2em !important;
            border-radius: 8px !important;
            padding: 10px !important;
        }

        /* Increase the size of buttons and input fields */
        .docs-material-button, .docs-material-button-content {
            font-size: 1em !important;
        }

        /* Make the toolbar more ribbon-like */
        .docs-explore-button-container {
            border-radius: 12px !important;
            box-shadow: 0px 2px 4px rgba(0,0,0,0.2) !important;
            background-color: #ffffff !important;
        }

        /* Apply Material Design Lite styles */
        .docs-slide-viewer, .docs-slide-content, .docs-slide-editor {
            border-radius: 8px !important;
            box-shadow: 0px 4px 8px rgba(0,0,0,0.1) !important;
        }

        /* Add drawing and PowerPoint-like themes */
        .docs-slide-content {
            background-color: #fafafa !important;
        }

        .docs-drawing-editor {
            border: 2px dashed #e0e0e0 !important;
            border-radius: 8px !important;
        }

        .docs-powerpoint-theme {
            background-color: #ffffff !important;
            color: #333333 !important;
            border-radius: 12px !important;
        }

        /* Add more shapes and tools */
        .docs-shape-button {
            border-radius: 50% !important;
            background-color: #eeeeee !important;
            box-shadow: 0px 2px 4px rgba(0,0,0,0.2) !important;
            padding: 10px !important;
            margin: 5px !important;
        }

        .docs-shape-button:hover {
            background-color: #dddddd !important;
            cursor: pointer;
        }

        /* Animations for shape and tool interactions */
        .docs-shape-button, .docs-material-button {
            transition: background-color 0.3s ease, transform 0.3s ease;
        }

        .docs-shape-button:active, .docs-material-button:active {
            transform: scale(0.95);
        }

        /* Style for additional tool panels */
        .docs-tool-panel {
            border: 1px solid #e0e0e0 !important;
            border-radius: 8px !important;
            box-shadow: 0px 2px 4px rgba(0,0,0,0.1) !important;
            background-color: #ffffff !important;
            padding: 10px !important;
            margin: 10px !important;
        }

        /* Add specific shapes for the drawing tools */
        .docs-drawing-rectangle {
            border: 2px solid #009688 !important;
            border-radius: 4px !important;
        }

        .docs-drawing-circle {
            border: 2px solid #009688 !important;
            border-radius: 50% !important;
        }

        .docs-drawing-line {
            border-top: 2px solid #009688 !important;
            width: 100% !important;
        }
    `);

    // Add custom JavaScript for advanced functionality
    function addCustomTools() {
        // Add additional shapes or tools to the toolbar or interface
        // This could involve injecting additional HTML/CSS/JS
        console.log('Custom tools and shapes can be added here.');
    }

    // Initialize custom tools after the page loads
    window.addEventListener('load', addCustomTools);
})();