mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-21 15:48:52 -05:00
feat(usrbg): support new simplified profiles
This commit is contained in:
parent
e075dad9d9
commit
507f05dad6
1 changed files with 17 additions and 4 deletions
|
@ -27,10 +27,10 @@ import style from "./index.css?managed";
|
||||||
const API_URL = "https://usrbg.is-hardly.online/users";
|
const API_URL = "https://usrbg.is-hardly.online/users";
|
||||||
|
|
||||||
interface UsrbgApiReturn {
|
interface UsrbgApiReturn {
|
||||||
endpoint: string
|
endpoint: string;
|
||||||
bucket: string
|
bucket: string;
|
||||||
prefix: string
|
prefix: string;
|
||||||
users: Record<string, string>
|
users: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const settings = definePluginSettings({
|
const settings = definePluginSettings({
|
||||||
|
@ -73,6 +73,19 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
find: /overrideBannerSrc:\i,profileType:/,
|
||||||
|
replacement: [
|
||||||
|
{
|
||||||
|
match: /(\i)\.premiumType/,
|
||||||
|
replace: "$self.premiumHook($1)||$&"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
match: /(?<=function \i\((\i)\)\{)(?=var.{30,50},overrideBannerSrc:)/,
|
||||||
|
replace: "$1.overrideBannerSrc=$self.useBannerHook($1);"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
find: "\"data-selenium-video-tile\":",
|
find: "\"data-selenium-video-tile\":",
|
||||||
predicate: () => settings.store.voiceBackground,
|
predicate: () => settings.store.voiceBackground,
|
||||||
|
|
Loading…
Add table
Reference in a new issue