All Google Websites Dark UI

Full dark mode for all Google websites including Docs, Sheets, Slides, and Classroom. Icons in Classroom keep their original color. White gridlines in Sheets and dark rulers in editors included.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         All Google Websites Dark UI
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Full dark mode for all Google websites including Docs, Sheets, Slides, and Classroom. Icons in Classroom keep their original color. White gridlines in Sheets and dark rulers in editors included.
// @author       Blublubdude
// @match        *://*.google.com/*
// @match        *://*.google.*/*
// @icon         https://blublubdude.github.io/Blubs_Games/icon.png
// @grant        GM_addStyle
// @licence     GNU AGPLv3


// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
        /* General dark theme */
        html, body {
            background-color: #000 !important;
            color: #fff !important;
        }

        * {
            background-color: transparent !important;
            color: #fff !important;
            border-color: #555 !important;
        }

        input, textarea, select, button {
            background-color: #111 !important;
            color: #fff !important;
            border: 1px solid #444 !important;
        }

        a {
            color: #4da6ff !important;
        }

        img, video {
            filter: brightness(0.8) contrast(1.2);
        }

        /* Preserve original colors for Google Classroom icons */
        .YVvGBb img,
        .YVvGBb svg,
        .LXRPh img,
        .LXRPh svg,
        .LcCc0c img,
        .LcCc0c svg,
        .cQTqKc img,
        .cQTqKc svg {
            filter: none !important;
            color: inherit !important;
        }

        /* Google Docs */
        .kix-page,
        .kix-page-content,
        .kix-canvas-tile-content,
        .kix-appview-editor {
            background-color: #000 !important;
            color: #fff !important;
        }

        .kix-lineview-text-block span {
            color: #fff !important;
        }

        .kix-ruler,
        .docs-ruler {
            background-color: #111 !important;
        }

        /* Google Slides */
        .punch-viewer-content,
        .punch-filmstrip-thumbnail,
        .punch-filmstrip-background,
        .punch-filmstrip {
            background-color: #000 !important;
            color: #fff !important;
        }

        .punch-viewer-page {
            background-color: #000 !important;
        }

        /* Google Sheets */
        .grid-container,
        .grid-canvas,
        .cell-input,
        .docs-sheet-tab,
        .grid-sheet-container {
            background-color: #000 !important;
            color: #fff !important;
        }

        .row-header, .column-header {
            background-color: #111 !important;
            color: #fff !important;
        }

        .docs-sheet-tab {
            border-top: 2px solid #fff !important;
        }

        /* White gridlines in Sheets */
        .gridlines,
        .waffle-grid .cell-border {
            stroke: #fff !important;
            border-color: #fff !important;
        }

        .cell-input {
            color: #fff !important;
        }
    `);
})();