Google Docs Dark Mode

Force Google Docs into dark mode

// ==UserScript==
// @name         Google Docs Dark Mode
// @namespace    http://your.namespace.here
// @version      0.1
// @description  Force Google Docs into dark mode
// @author       owen thiessen
// @match        https://docs.google.com/document/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Function to apply dark mode styles
    function applyDarkMode() {
        // Get the document body
        var body = document.getElementsByTagName("body")[0];

        // Apply dark mode styles
        body.style.backgroundColor = "#1e1e1e"; // Background color
        body.style.color = "#d4d4d4"; // Text color
    }

    // Call the function to apply dark mode
    applyDarkMode();

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址