diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index 917dc74..2d7cf64 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -3236,7 +3236,7 @@ async function copyToClipboard(text, showToast = !0) { return !1; } function productTitleToSlug(title) { - return title.replace(/[;,/?:@&=+_`~$%#^*()!^™\xae\xa9]/g, "").replace(/ {2,}/g, " ").trim().substr(0, 50).replace(/ /g, "-").toLowerCase(); + return title.replace(/[;,/?:@&=+_`~$%#^*()!^™\xae\xa9]/g, "").replace(/\|/g, "-").replace(/ {2,}/g, " ").trim().substr(0, 50).replace(/ /g, "-").toLowerCase(); } class SoundShortcut { @@ -8107,7 +8107,7 @@ class ProductDetailsPage { const matches = /\/games\/(?[^\/]+)\/(?\w+)/.exec(window.location.pathname); if (!matches?.groups) return; - const titleSlug = matches.groups.titleSlug, productId = matches.groups.productId; + const titleSlug = matches.groups.titleSlug.replaceAll("%" + "7C", "-"), productId = matches.groups.productId; AppInterface.downloadWallpapers(titleSlug, productId); } catch (e2) { }