grok padding

a

// ==UserScript==
// @name         grok padding
// @description  a
// @match        *://grok.com/*
// @version 0.0.1.20250621072738
// @namespace https://greasyforks.org/users/1435046
// ==/UserScript==

(function () {
    'use strict';

    function applyRedBorder() {
        const container = document.querySelector('[class~="@container/main"]');
        if (container) {
            const firstDiv = Array.from(container.children).find(el => el.tagName === 'DIV');
            if (firstDiv) {
                firstDiv.style.setProperty('padding-left', 'unset', 'important');
                firstDiv.style.setProperty('padding-right', 'unset', 'important');

            }
        }
    }

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', applyRedBorder);
    } else {
        applyRedBorder();
    }

    const observer = new MutationObserver(() => {
        applyRedBorder();
    });

    observer.observe(document.body, {
        childList: true,
        subtree: true
    });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。