From 75549bc4777cf0210275449c10d005662826091c Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:08:18 +0700 Subject: [PATCH] Update dists --- dist/better-xcloud.lite.user.js | 7 ++++++- dist/better-xcloud.user.js | 13 ++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/dist/better-xcloud.lite.user.js b/dist/better-xcloud.lite.user.js index 8ff7a3b..da194c3 100644 --- a/dist/better-xcloud.lite.user.js +++ b/dist/better-xcloud.lite.user.js @@ -4428,7 +4428,12 @@ var BxExposed = { which: 4 }; return document.body.dispatchEvent(new KeyboardEvent("keydown", dict)), document.body.dispatchEvent(new KeyboardEvent("keyup", dict)), !1; - } + }, + GameSlugRegexes: [ + /[;,/?:@&=+_`~$%#^*()!^™\xae\xa9]/g, + / {2,}/g, + / /g + ] }; function localRedirect(path) { let url = window.location.href.substring(0, 31) + path, $pageContent = document.getElementById("PageContent"); diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index ec5aa68..af8a400 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -4390,6 +4390,11 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) { let index = str.indexOf('"ContextualCardActions-module__container'); if (index >= 0 && (index = str.indexOf('addEventListener("touchstart"', index)), index >= 0 && (index = PatcherUtils.lastIndexOf(str, "return ", index, 50)), index < 0) return !1; return str = PatcherUtils.replaceWith(str, index, "return", "return () => {};"), str; + }, + optimizeGameSlugGenerator(str) { + let text = "/[;,/?:@&=+_`~$%#^*()!^\\u2122\\xae\\xa9]/g"; + if (!str.includes(text)) return !1; + return str = str.replace(text, "window.BX_EXPOSED.GameSlugRegexes[0]"), str = str.replace("/ {2,}/g", "window.BX_EXPOSED.GameSlugRegexes[1]"), str = str.replace("/ /g", "window.BX_EXPOSED.GameSlugRegexes[2]"), str; } }, PATCH_ORDERS = [ ...getPref("native_mkb_enabled") === "on" ? [ @@ -4398,6 +4403,7 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) { "disableNativeRequestPointerLock", "exposeInputSink" ] : [], + "optimizeGameSlugGenerator", "detectBrowserRouterReady", "patchRequestInfoCrash", "disableStreamGate", @@ -5776,7 +5782,12 @@ var BxExposed = { which: 4 }; return document.body.dispatchEvent(new KeyboardEvent("keydown", dict)), document.body.dispatchEvent(new KeyboardEvent("keyup", dict)), !1; - } + }, + GameSlugRegexes: [ + /[;,/?:@&=+_`~$%#^*()!^™\xae\xa9]/g, + / {2,}/g, + / /g + ] }; function localRedirect(path) { let url = window.location.href.substring(0, 31) + path, $pageContent = document.getElementById("PageContent");