From b16a7d0445532916ffc796b41120da66fb0cf3ca Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 30 Jul 2026 03:38:02 -0400 Subject: [PATCH] Merge Dev --- src/plugins/betterSessions/index.tsx | 2 +- src/plugins/favGifSearch/README.md | 5 ----- src/plugins/onePingPerDM/index.ts | 6 +++--- src/plugins/tenorGifSearch/index.tsx | 6 +++--- src/plugins/viewIcons/index.tsx | 6 +++--- 5 files changed, 10 insertions(+), 15 deletions(-) delete mode 100644 src/plugins/favGifSearch/README.md diff --git a/src/plugins/betterSessions/index.tsx b/src/plugins/betterSessions/index.tsx index db7efdf4c..5fba7d8b8 100644 --- a/src/plugins/betterSessions/index.tsx +++ b/src/plugins/betterSessions/index.tsx @@ -62,7 +62,7 @@ export default definePlugin({ find: "#{intl::AUTH_SESSIONS_OS_UNKNOWN}", replacement: [ { - match: /(#{intl::AUTH_SESSIONS_ACTIVE_RECENTLY}.{0,230}role:"listitem",children:\[.{0,15},\{Icon:)\i/, + match: /(#{intl::AUTH_SESSIONS_ACTIVE_RECENTLY}.{0,230}role:"listitem",children:\[.{0,15},\{icon:)\i/, replace: "$1()=>$self.renderIcon(arguments[0])" }, { diff --git a/src/plugins/favGifSearch/README.md b/src/plugins/favGifSearch/README.md deleted file mode 100644 index af120dace..000000000 --- a/src/plugins/favGifSearch/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# FavoriteGifSearch - -Adds a search bar to favorite gifs. - -![Screenshot](https://github.com/Vendicated/Vencord/assets/45497981/19552adc-d921-4153-976e-e9361dc8fdaf) diff --git a/src/plugins/onePingPerDM/index.ts b/src/plugins/onePingPerDM/index.ts index 87727fa32..bb551fdc6 100644 --- a/src/plugins/onePingPerDM/index.ts +++ b/src/plugins/onePingPerDM/index.ts @@ -54,11 +54,11 @@ export default definePlugin({ settings, patches: [ { - find: ".getDesktopType()===", + find: '"NotificationStore"', replacement: [ { - match: /(\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER)\)(?=.*?(\i\.\i\.playNotificationSound\(.{0,5}\)))/, - replace: "$&if(!$self.isPrivateChannelRead(arguments[0]?.message))return;else if($self.playSound())return $2;else " + match: /\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER\)(?=.*?(\i\.\i\.playNotificationSound\(.{0,5}\)))/, + replace: "$&if(!$self.isPrivateChannelRead(arguments[0]?.message))return;else if($self.playSound())return $1;else " }, { match: /sound:(\i\?(\i):void 0,volume:\i,onClick)/, diff --git a/src/plugins/tenorGifSearch/index.tsx b/src/plugins/tenorGifSearch/index.tsx index c825101b3..ab9befbde 100644 --- a/src/plugins/tenorGifSearch/index.tsx +++ b/src/plugins/tenorGifSearch/index.tsx @@ -159,8 +159,8 @@ export default definePlugin({ replace: "return $self.handleTrendingGifsFetch();$&" }, { - match: /\i\.\i\.post\(\{url:\i\.\i\.GIFS_SELECT,body:\{id:(\i),q:(\i),provider:\i\}/, - replace: "return $self.handleGifSelect($1,$2);$&" + match: /\i\.\i\.post\(\{url:\i\.\i\.GIFS_SELECT,body:\{id:(\i),q:(\i)\}/, + replace: "$self.handleGifSelect($1,$2)&&false&&$&" } ] }, @@ -193,7 +193,7 @@ export default definePlugin({ }, handleSearchFetch(query: string) { - // discord has a 100 result limit for normal search + // Discord has a 100 result limit for normal search fetchTenorResults("/search", 100, { q: query }) .then(results => { const items = mapToDiscordGifs(results); diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index 4212033ab..567e5026d 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -229,10 +229,10 @@ export default definePlugin({ }, // Banners { - find: 'backgroundColor:"COMPLETE"', + find: '"--custom-cutout-radius":', replacement: { - match: /(overflow:"visible",.{0,125}?!1\),)style:{(?=.+?backgroundImage:null!=(\i)\?`url\(\$\{\2\}\))/, - replace: (_, rest, bannerSrc) => `${rest}onClick:vcEvent=>${bannerSrc}!=null&&$self.openBanner(${bannerSrc}, vcEvent),style:{cursor:${bannerSrc}!=null?"pointer":void 0,` + match: /style:{(?=\.\.\.\i,backgroundImage:null!=(\i).{0,20}?\?`url\(\$\{\1\}\)`)/, + replace: (_, bannerSrc) => `onClick:vcEvent=>${bannerSrc}!=null&&$self.openBanner(${bannerSrc},vcEvent),style:{cursor:${bannerSrc}!=null?"pointer":void 0,` } }, // Group DMs top small & large icon