OpenInApp: Support VRCX

This commit is contained in:
thororen1234 2025-12-24 14:51:53 -05:00
parent 92f847bb37
commit 607faae32f
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View file

@ -42,6 +42,7 @@ export const ALLOWED_PROTOCOLS = [
"com.epicgames.launcher:",
"tidal:",
"itunes:",
"vrcx:",
];
export const IS_VANILLA = /* @__PURE__ */ process.argv.includes("--vanilla");

View file

@ -61,6 +61,11 @@ const UrlReplacementRules: Record<string, URLReplacementRule> = {
replace: (_, lang, type, name, id) => id ? `itunes://music.apple.com/us/${type}/${name}/${id}` : `itunes://music.apple.com/us/${type}/${name}`,
description: "Open Apple Music links in the iTunes app"
},
vrcx: {
match: /^https:\/\/vrchat.com\/home\/(user|avatar|world|group)\/(.+)$/,
replace: (_, type, id) => `vrcx://${type}/${id}`,
description: "Open VRChat links in the VRCX app"
}
};
const pluginSettings = definePluginSettings(