您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
a
// ==UserScript== // @name grok padding // @description a // @match *://grok.com/* // @version 0.0.1.20250621072738 // @namespace https://greasyfork.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 }); })();