Skip to content

Commit

Permalink
Update better-xcloud.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
redphx committed Sep 4, 2024
1 parent e952bf0 commit 2ed4e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/better-xcloud.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -8107,7 +8107,7 @@ class ProductDetailsPage {
const matches = /\/games\/(?<titleSlug>[^\/]+)\/(?<productId>\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) {
}
Expand Down

0 comments on commit 2ed4e23

Please sign in to comment.