From 75d9639c01481b1f58693b262bb0000741a076e3 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 15 Oct 2023 16:23:51 +0700 Subject: [PATCH] Hide the "Play with friends" section when social features are disabled --- better-xcloud.user.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 9c6718f..bd51650 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -3679,6 +3679,16 @@ div[class*=NotFocusedDialog] { } `; + // Hide "Play with friends" section + if (PREFS.get(Preferences.BLOCK_SOCIAL_FEATURES)) { + css += ` +div[class^=HomePage-module__bottomSpacing]:has(button[class*=SocialEmptyCard]), +button[class*=SocialEmptyCard] { + display: none; +} +`; + } + // Reduce animations if (PREFS.get(Preferences.REDUCE_ANIMATIONS)) { css += `