Last active
May 14, 2025 02:22
-
-
Save easrng/6d2305c305a2934ff4d21320e040cec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name unfuck discord | |
@namespace easrng | |
@version 0.0.3 | |
@author easrng | |
==/UserStyle== */ | |
@-moz-document domain("discord.com") { | |
:root { | |
--font-primary: "Roboto", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
--font-display: "Roboto", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
--font-headline: "Roboto", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
--font-code: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; | |
} | |
:root { | |
--pleading-sprite: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAMAAADZyI/9AAAAYFBMVEUAAACJfGn/v1dXWWJQUln+wUb9wkZPUVn9wkf7wUVOUFhPUFj8xEVOUFj+wUZOUFj9wUX2+v7c3+P8wUXnsT+srrGdn6LBlDWGiIqeeStyVx5OUFhENBIkHAsKBwQCAgKbdnyIAAAAEXRSTlMADiAgTlB5eI+Ql7e51tnt70HG88kAAALmSURBVHja3ZjRdoMgDIbHxHYVEVdcW0Xx/d9yxQBBoC03PTtnXy+0ERP+EBD9+IcQ2jAulBKcNZQUtK+/2q6Xsu/ar/p1e8qECmH0efu67WVIWz93z1UCp0/cdzKhexyiYioLr/LtP1uZpfvMtz8K9QBxzLU/9PIB/SHrXz3hmPEvn3Ao9I8cC/1jhHL/GKHcP0ZA/8UR0H95hEqol4gqqJ9evqQPawnKnx1J1aiIhlSUwWVsD+V/nfQyyohRL9MV5hy2p+DdnBIVsfUbYlA/v8D7ekfLiMVYIUYdCGiIS5aK8BcaxVHAqFdgkRH+wii7QIDLL0lT5C95CbXpJ6DTFPlLKIHZfpIjUxkYhTT5UWhtPzUkO+Y6QZr8KJCtn+g9H8NoE9CPrZ/oPR/DaOuJzRDAKwL/EMgKqbj7BxkChmk2qU4zNE+DBCBHjdpXISpJbI05P1n/NtmL84Y27Wyn8OZ7JNHYorJwtAUBW1ePl/NlH2FAGxjawB/dlDS7Uq3QRiEizrJxvXx/f1+2sZaWydtWyBwUqlAGOIrdZCNg8xLgtLcCzndnZ+NslpYZbCihD9TDWGA+8jZzJjdW7O0qgYwtvBXyTSlYElsaAPLtnaFNKQyAKbIlKwQNAqCNxCmawffl4kfUzW/186Ns2vpgkCtXUQynAkVbFQ/yBP5NRkZpGVfD7Xy+rVMwyMzda2gYCADQxuMyHRarwAlACbebK932TRNt3U80ml8W0uUDl4p0WUiXD1wqiFClwGLXy1II6i8Bl+tCWv/AiRANJYTQJpKGD5yY6zjN03iVETU+MndwYu2E7+3BM3+feK3X+0/jeGCR5iR8ILGArITZODescyoAYAUBUEA8Cot2LLGA/Maruhu44uZQtPGatB4HOYxaT8nGK7915BwPJVvHYfAH5PDuze+7t+/vfgH5i1eorXSysEcvgZ3M0n7+zWssQJkKEa9fxPfJaes3fEo4uU8Jp5r8w28rvzL09sy1SwLpAAAAAElFTkSuQmCC'); | |
} | |
[class*="emojiButton"] [class*="spriteColored"] { | |
background-image: var(--pleading-sprite); | |
background-position: var(--custom-emoji-sprite-size) 0; | |
background-size: calc(var(--custom-emoji-sprite-size) * 2); | |
} | |
[class*="emojiButton"] [class*="spriteGreyscale"] { | |
-webkit-mask-image: var(--pleading-sprite); | |
-webkit-mask-position: 0 0; | |
-webkit-mask-size: calc(var(--custom-emoji-sprite-size) * 2); | |
mask-image: var(--pleading-sprite); | |
mask-position: 0 0; | |
mask-size: calc(var(--custom-emoji-sprite-size) * 2); | |
} | |
div[class*="sidebar_"] { | |
--custom-app-panels-height: calc(var(--custom-chat-input-margin-bottom) + 2px + var(--custom-channel-textarea-text-area-height) - var(--space-xs)); | |
background: transparent !important; | |
box-shadow: 1px 0 var(--bg-overlay-4, var(--background-base-lowest)); | |
} | |
div[class*="sidebar_"] > section[class*="panels_"] { | |
bottom: 0; | |
padding-bottom: var(--custom-chat-input-margin-bottom); | |
background: transparent; | |
border: none; | |
border-radius: unset; | |
padding-left: var(--space-xs); | |
padding-right: var(--space-xs); | |
left: 0; | |
width: 100%; | |
} | |
div[class*="sidebar_"] > section[class*="panels_"]::before { | |
content: ''; | |
inset: 0; | |
top: calc(-2 * var(--space-xs)); | |
background: linear-gradient(transparent, var(--background-base-lowest) 50% 100%); | |
pointer-events: none; | |
position: absolute; | |
z-index: -1; | |
} | |
div[class*="sidebar_"] > [class*="wrapper_"] { | |
margin-bottom: 0; | |
padding-bottom: calc(var(--custom-app-panels-height) + var(--space-xs)); | |
background: transparent !important; | |
} | |
div[class*="sidebar_"] > [class*="wrapper_"] [class*="scroller_"] { | |
margin-bottom: calc(-1 * var(--custom-app-panels-height)); | |
padding-bottom: calc(var(--custom-app-panels-height) + var(--space-xs) * 2); | |
padding-top: var(--space-xs); | |
} | |
div[class*="sidebar_"] > section[class*="panels_"] > div[class*="container_"] { | |
height: calc(var(--custom-channel-textarea-text-area-height) + 2px); | |
min-height: reset; | |
background: var(--bg-overlay-floating, var(--background-base-low)); | |
border-radius: var(--radius-sm); | |
border: 1px solid var(--border-faint); | |
} | |
[class*="base_"] { | |
--custom-app-top-bar-height: 0; | |
} | |
[class*="base_"] > [class*="bar_"] { | |
/* display: none; */ | |
} | |
[class*="sidebarList_"] { | |
background: var(--bg-overlay-4, var(--background-base-lowest)); | |
background-clip: border-box; | |
box-shadow: 2px 0 var(--bg-overlay-4, var(--background-base-lowest)); | |
} | |
[class*="app_"] { | |
--bg-overlay-app-frame: color-mix(in oklch, var(--background-base-lowest), #000 10%); | |
} | |
.theme-light [class*="app_"] { | |
--bg-overlay-app-frame: color-mix(in oklch, var(--background-base-lowest), #000 3%); | |
} | |
[class*="unreadMentionsIndicatorTop"] { | |
overflow: visible; | |
} | |
[class*="typing_"] { | |
bottom: calc(100% - 10px); | |
padding-bottom: 13px; | |
padding-top: 3px; | |
background: var(--background-base-lower); | |
left: 0 !important; | |
right: 0 !important; | |
padding-left: var(--space-16); | |
padding-right: var(--space-16); | |
z-index: 0; | |
border-top-left-radius: var(--radius-md); | |
border-top-right-radius: var(--radius-md); | |
} | |
[class*="messagesWrapper_"] [class*="scroller_"] { | |
padding-bottom: 16px; | |
} | |
div[class*="container_"] { | |
--custom-chat-input-margin-bottom: var(--space-xs); | |
} | |
[class*="channelTextArea_"] { | |
z-index:1; | |
} | |
[class*="chatContent"]:has([class*="typing_"]) > [class*="messagesWrapper_"] { | |
margin-bottom: 32px !important; | |
} | |
[class*="chatContent"]:has([class*="typing_"]) > [class*="messagesWrapper_"] > [class*="scroller_"] { | |
margin-bottom: -32px !important; | |
} | |
[class*="toolbar_"] { | |
padding-right: calc(var(--space-32) + var(--space-xs) * 2); | |
} | |
[class*="base_"] > [class*="bar_"] > [class*="trailing_"] { | |
position: fixed; | |
top: var(--space-xs); | |
right: var(--space-16); | |
z-index: 2000; | |
} | |
[class*="base_"] > [class*="bar_"] > [class*="trailing_"] > a { | |
display: none; | |
} | |
[class*="chipletContainerInner__"] [class*="badge__"] { | |
image-rendering: pixelated; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment