From 79210450d9dabf14ea368c9911bd4b276c854090 Mon Sep 17 00:00:00 2001 From: Er2 Date: Sat, 9 Apr 2022 11:14:13 +0300 Subject: [PATCH] restore some features, bugfixes --- src/hide.less | 4 +--- src/style.less | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/hide.less b/src/hide.less index 5c2e45c..eb6b98f 100644 --- a/src/hide.less +++ b/src/hide.less @@ -20,7 +20,7 @@ div[class*="templatesList-"] button[class^="container-"] ~ *, // templates are r // Nicks li[class^="messageListItem-"] [class*="cozyMessage-"] [class^="username-"], // in message -div[class*="nameTag-"] [class^="username-"], // outside message +:not([class^="headerText-"]) > div[class*="nameTag-"] [class^="username-"], // outside message [class^="discrimBase-"], div[class^="discordTag-"] [class^="username-"], // friends tab @@ -50,7 +50,6 @@ nav[class^="privateChannels-"] div div // Nitro tab at DM // Suggestions button[class*="followButton-"], // at top in channels [class^="nowPlaying"], // in friends tab -[class^="applicationInstall"], // at bot profile div[class^="threadSuggestionBar-"], // create thread because many replies div[class^="welcomeCTA-"], // wave to say hi on server div[role="separator"]:not([id$="new-messages-bar"]), // aren't needed @@ -80,7 +79,6 @@ nav[class^="nav-"], // breaks emoji panel, fixed at fixes.less // Search nav > [class^="searchBar-"], [role^="tab"] > [class^="searchBar-"], -div[class^="quickswitcher-"], // Ctrl-K div[class^="toolbar-3_"] > :nth-child(3) ~ *:not([class^="search-"]), // Sidebar diff --git a/src/style.less b/src/style.less index 6c961d6..507adc9 100644 --- a/src/style.less +++ b/src/style.less @@ -27,7 +27,7 @@ // Input div[class^="searchBox-"], - div[class*="input"], + [class*="input"], input[class^="inputDefault-"], div[class*="TextArea"], textarea, @@ -48,7 +48,10 @@ // UI elements [class^="checkboxWrapper-"], // checkbox div[class^="markup-"] pre code, // ```code``` - div[class^="item-"], // in settings + span[class^="spoiler"], + span.mention, + code.inline, + [class^="item-"], // in settings div[class^="group-"], // radiogroup div[class*="card"], div[class^="categoryItem-"] > *, // in Discovery @@ -64,11 +67,13 @@ div[class^="profileBanner"], div[class^="accountProfile"], + div[class^="quickswitcher-"] input, + div[class^="autocomplete-"], // input div[class^="pictureInPicture-"], div[class^="select-"], - div[class^="messagesWrapper-"] div, + div[class^="messagesWrapper-"] div:not([class*="Inner"]):not([class^="filename"]), div[class^="layer-"] > div[class^="container-"], div[class^="base-"] div[class^="content-"] > div:nth-child(2), @@ -122,7 +127,7 @@ div[class^="auditLog"] { } div[class^="messagesWrapper-"] -div[class*="mentioned"] +div[class^="message-"][class*="mentioned"] { .left-border(4px); } // title @@ -267,13 +272,16 @@ div[class^="chat-"] } // Acrylic material +div[class^="quickswitcher-"] div[class^="scroll"], div[class^="focusLock-"] > div, div[class^="avatar-"], { background: unset !important; border-color: transparent; + scrollbar-color: var(--scrollbar-auto-scrollbar-color-track) transparent; } +div[class^="channelHeader-"], div[class^="emojiPicker-"], #emoji-picker-tab-panel div[class*="header-"], div[class^="focusLock-"] > div,