From dec2dce2dabb9c5f409d49de0ca6654e666f8e6c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 6 Jun 2024 02:48:05 -0400 Subject: [PATCH] Fixes Again? --- src/plugins/usrbg/index.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/plugins/usrbg/index.tsx b/src/plugins/usrbg/index.tsx index 9dbff14b..bf9905fe 100644 --- a/src/plugins/usrbg/index.tsx +++ b/src/plugins/usrbg/index.tsx @@ -64,7 +64,7 @@ export default definePlugin({ replace: "$self.premiumHook($1)||$&" }, { - match: /(?<=function \i\((\i)\)\{)(?=var.{30,50},bannerSrc:)/, + match: /(?<=function \i\((\i)\)\{)(?=var.+?,bannerSrc:)/, replace: "$1.bannerSrc=$self.useBannerHook($1);" }, { @@ -73,19 +73,23 @@ export default definePlugin({ } ] }, - { - find: /profileType:\i,overrideBannerSrc:\i/, + ...[/profileType:\i,pendingBanner:\i/, /profileType:\i,overrideBannerSrc:\i/].map(find => ({ + find, replacement: [ { match: /(\i)\.premiumType/, replace: "$self.premiumHook($1)||$&" }, { - match: /(?<=function \i\((\i)\)\{)(?=var.{30,50},overrideBannerSrc:)/, + match: /(?<=function \i\((\i)\)\{)(?=var.+?,overrideBannerSrc:)/, replace: "$1.overrideBannerSrc=$self.useBannerHook($1);" + }, + { + match: /(?<=function \i\((\i)\)\{)(?=var.+?,pendingBanner:)/, + replace: "$1.pendingBanner=$self.useBannerHook($1);" } ] - }, + })), { find: "\"data-selenium-video-tile\":", predicate: () => settings.store.voiceBackground,