From e98fa29271a56117f19e5208ff00296471213441 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:52:41 +0700 Subject: [PATCH] Disable social features also hide the "Start a party" button in the Guide menu --- src/utils/css.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils/css.ts b/src/utils/css.ts index ed39a0c..86640bc 100644 --- a/src/utils/css.ts +++ b/src/utils/css.ts @@ -6,11 +6,14 @@ import { renderStylus } from "@macros/build" with {type: "macro"}; export function addCss() { let css = renderStylus(); - // Hide "Play with friends" section if (getPref(PrefKey.BLOCK_SOCIAL_FEATURES)) { css += ` +/* Hide "Play with friends" section */ div[class^=HomePage-module__bottomSpacing]:has(button[class*=SocialEmptyCard]), -button[class*=SocialEmptyCard] { +button[class*=SocialEmptyCard], +/* Hide "Start a party" button in the Guide menu */ +#gamepass-dialog-root div[class^=AchievementsPreview-module__container] + button[class*=HomeLandingPage-module__button], +{ display: none; } `; @@ -54,12 +57,13 @@ div[class*=StreamHUD-module__buttonsContainer] { `; } - // Simplify Stream's menu css += ` div[class*=StreamMenu-module__menu] { min-width: 100vw !important; } `; + + // Simplify Stream's menu if (getPref(PrefKey.STREAM_SIMPLIFY_MENU)) { css += ` div[class*=Menu-module__scrollable] {