From 23aeb212726e5e8e8bbf7de126d1b81b90aa99e4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 16 Mar 2024 02:30:36 +0100 Subject: [PATCH] fix ViewIcons & Decor patches --- src/plugins/decor/index.tsx | 2 +- src/plugins/viewIcons/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/decor/index.tsx b/src/plugins/decor/index.tsx index 713b17d7..7b9b4e3b 100644 --- a/src/plugins/decor/index.tsx +++ b/src/plugins/decor/index.tsx @@ -43,7 +43,7 @@ export default definePlugin({ { find: "DefaultCustomizationSections", replacement: { - match: /(?<={user:\i},"decoration"\),)/, + match: /(?<=USER_SETTINGS_AVATAR_DECORATION},"decoration"\),)/, replace: "$self.DecorSection()," } }, diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index d9dfc2ad..6eb773c2 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -174,7 +174,7 @@ export default definePlugin({ find: ".NITRO_BANNER,", replacement: { // style: { backgroundImage: shouldShowBanner ? "url(".concat(bannerUrl, - match: /style:\{(?=backgroundImage:(\i&&\i)\?"url\("\.concat\((\i),)/, + match: /style:\{(?=backgroundImage:(\i)\?"url\("\.concat\((\i),)/, replace: // onClick: () => shouldShowBanner && ev.target.style.backgroundImage && openImage(bannerUrl), style: { cursor: shouldShowBanner ? "pointer" : void 0, 'onClick:ev=>$1&&ev.target.style.backgroundImage&&$self.openImage($2),style:{cursor:$1?"pointer":void 0,'