From 850afb4ca7c25e9ca6469ebed27c6565ba641d12 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:57:04 +0700 Subject: [PATCH] Disable xCloud analytics also remove the Feedback button in the Guide menu --- src/utils/css.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utils/css.ts b/src/utils/css.ts index 86640bc..40c8250 100644 --- a/src/utils/css.ts +++ b/src/utils/css.ts @@ -12,13 +12,22 @@ export function addCss() { div[class^=HomePage-module__bottomSpacing]:has(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], +#gamepass-dialog-root div[class^=AchievementsPreview-module__container] + button[class*=HomeLandingPage-module__button] { display: none; } `; } + if (getPref(PrefKey.BLOCK_TRACKING)) { + css += ` +/* Remove Feedback button in the Guide menu */ +#gamepass-dialog-root #Home-panel button[class*=FeedbackButton] { + display: none; +} +`; + } + // Reduce animations if (getPref(PrefKey.REDUCE_ANIMATIONS)) { css += `