Grok Code Style with Collapse

Shrink, collapse, and style pre/code blocks on Grok pages with customizable domains

As of 2025-03-15. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Tau Chaung
Ratings
0 0 0
Version
1.3
Created
2025-03-15
Updated
2025-03-15
Size
5.31 KB
License
MIT
Applies to

新增 https://grok.x.ai/*https://x.ai/*,涵蓋潛在 Grok 出現地點。
避免干擾其他網站:
使用 @exclude https://greasyfork.org/* 和 @exclude https://*.org/*,排除 Greasy Fork 等非目標網站。
樣式選擇器改為 :not([class*="highlight"]:not([id*="highlight"])) > pre, code,避免影響帶有 highlight 類別或 ID 的代碼塊(常見於 Greasy Fork 等程式碼展示網站的斑馬紋高亮)。