Discord (web) - Remove top bar in the new 2025 UI refresh

The bar is pretty useless and takes a ton of vertical space.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name           Discord (web) - Remove top bar in the new 2025 UI refresh
@description    The bar is pretty useless and takes a ton of vertical space.
@namespace      https://greasyfork.org/en/users/4813
@author         Swyter
@version        2025.03.28
@license        CC-BY-SA 4.0
@preprocessor   default
==/UserStyle== */
 
@-moz-document domain("discord.com")
{
    .visual-refresh {
        /* swy: change the CSS variable so that the rest of the layout that goes below complies :) */
        --custom-app-top-bar-height: 0px !important;
    
        /* swy: hide the top bar contents, otherwise some icons bleed through */
        div[class^='container_'] > div[class^='base_'] > div[class^='bar_'] {
            display: none !important;
        }
    
        /* swy: restore the top padding for the sidebar server icon list (so that the Direct Messages button doesn't look weird) */
        div[class^='sidebar_'] > nav[class^='wrapper_'] > ul[class^='tree_'] > div[class^='itemsContainer_'] > div[class^='stack_'] {
            padding-top: 12px !important; /* swy: 12px is the original value */
        }
    }
}