|
|
|
@ -27,10 +27,10 @@ import style from "./index.css?managed";
|
|
|
|
|
const API_URL = "https://usrbg.is-hardly.online/users";
|
|
|
|
|
|
|
|
|
|
interface UsrbgApiReturn {
|
|
|
|
|
endpoint: string
|
|
|
|
|
bucket: string
|
|
|
|
|
prefix: string
|
|
|
|
|
users: Record<string, string>
|
|
|
|
|
endpoint: string;
|
|
|
|
|
bucket: string;
|
|
|
|
|
prefix: string;
|
|
|
|
|
users: Record<string, string>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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\":",
|
|
|
|
|
predicate: () => settings.store.voiceBackground,
|
|
|
|
|