view discord-remove-top-bar.user.js @ 147:15ec4ec958d7 default tip

Sentence case name and match filename (sort of)
author nanaya <me@nanaya.net>
date Sat, 27 Sep 2025 15:06:06 +0900
parents bfd72865c243
children
line wrap: on
line source

// ==UserScript==
// @name        Discord remove top bar
// @namespace   https://nanaya.net
// @match       https://discord.com/*
// @grant       GM_addStyle
// @version     1.0.1
// @author      nanaya
// @description Fix discord redundant bar on the top
// @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/discord-remove-top-bar.user.js
// ==/UserScript==

'use strict';

/* global GM_addStyle */
GM_addStyle(`
  :root {
    --custom-app-top-bar-height: 0px !important;
    --custom-channel-header-height: 58px !important;
  }
  [class^="bar_"] {
    opacity: 0 !important;
  }
  [data-list-id="guildsnav"] > [class^="itemsContainer_"] > div {
    padding-top: 10px !important;
  }
`);