From c3d37b7034c5e0f0616e982633938f0bbd55996a Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 6 Jan 2024 11:51:02 +0700 Subject: [PATCH] Another attempt to fix the StreamMenu buttons --- better-xcloud.user.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index c5e5889..0b15ff2 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -6617,15 +6617,6 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) { return funcStr.replace(text, 'get mouseAndKeyboardEnabled() {return this._titleSupportsMouseAndKeyboard;'); }, - patchStreamHudSize: function(funcStr) { - if (!funcStr.includes('="StreamHUD-module__button')) { - return false; - } - - funcStr = funcStr.replace('=3;', '=5;'); - return funcStr; - }, - disableGamepadDisconnectedScreen: function(funcStr) { const index = funcStr.indexOf('"GamepadDisconnected_Title",'); if (index === -1) { @@ -6708,7 +6699,6 @@ if (window.BX_VIBRATION_INTENSITY && window.BX_VIBRATION_INTENSITY < 1) { [ 'disableGamepadDisconnectedScreen', 'mkbMouseAndKeyboardEnabled', - 'patchStreamHudSize', ], ]; @@ -6959,9 +6949,12 @@ function addCss() { } /* Fix Stream menu buttons not hiding */ -div[class^=HUDButton-module__hiddenContainer] ~ div { +div[class^=HUDButton-module__hiddenContainer] ~ div:not([class^=HUDButton-module__hiddenContainer]) { opacity: 0; pointer-events: none; + position: absolute; + top: -9999px; + left: -9999px; } .bx-button {