mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-26 17:31:43 +02:00
Update better-xcloud.user.js
This commit is contained in:
4
dist/better-xcloud.user.js
vendored
4
dist/better-xcloud.user.js
vendored
@ -3236,7 +3236,7 @@ async function copyToClipboard(text, showToast = !0) {
|
|||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
function productTitleToSlug(title) {
|
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 {
|
class SoundShortcut {
|
||||||
@ -8107,7 +8107,7 @@ class ProductDetailsPage {
|
|||||||
const matches = /\/games\/(?<titleSlug>[^\/]+)\/(?<productId>\w+)/.exec(window.location.pathname);
|
const matches = /\/games\/(?<titleSlug>[^\/]+)\/(?<productId>\w+)/.exec(window.location.pathname);
|
||||||
if (!matches?.groups)
|
if (!matches?.groups)
|
||||||
return;
|
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);
|
AppInterface.downloadWallpapers(titleSlug, productId);
|
||||||
} catch (e2) {
|
} catch (e2) {
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user