Merge Dev

This commit is contained in:
thororen1234 2026-07-30 03:38:02 -04:00
parent 015dc5dd82
commit b16a7d0445
No known key found for this signature in database
5 changed files with 10 additions and 15 deletions

View file

@ -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])"
},
{

View file

@ -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)

View file

@ -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)/,

View file

@ -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);

View file

@ -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