changeset 141:1321d44ce5df

Add discord remove top bar
author nanaya <me@nanaya.net>
date Wed, 26 Mar 2025 16:33:11 +0900
parents b4bb74b34ae9
children 3a5015322602
files discord_remove_top_bar.user.js
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/discord_remove_top_bar.user.js	Wed Mar 26 16:33:11 2025 +0900
@@ -0,0 +1,26 @@
+// ==UserScript==
+// @name        Discord Remove Top Bar
+// @namespace   https://nanaya.net
+// @match       https://discord.com/*
+// @grant       GM_addStyle
+// @version     1.0.0
+// @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;
+  }
+`);