From 171dc2b0401fd3b2fb1dfc724747e79035ce1d45 Mon Sep 17 00:00:00 2001 From: kmmiio99o Date: Sun, 24 May 2026 14:24:03 +0000 Subject: [PATCH] deploy: 6b5ff87d662f8de9dbbaec865b90da27ebc8119e --- ChatboxAvatar/index.js | 1 - ChatboxAvatar/manifest.json | 1 - 2 files changed, 2 deletions(-) delete mode 100644 ChatboxAvatar/index.js delete mode 100644 ChatboxAvatar/manifest.json diff --git a/ChatboxAvatar/index.js b/ChatboxAvatar/index.js deleted file mode 100644 index 84d7d4c..0000000 --- a/ChatboxAvatar/index.js +++ /dev/null @@ -1 +0,0 @@ -(function(w,A,r,n,e,a,m){"use strict";var b,C,E,k;const{ScrollView:F}=n.ReactNative,{TableRowGroup:f,TableCheckboxRow:i,Stack:H}=r.findByProps("TableCheckboxRow","TableRowGroup","Stack");(b=e.plugin.storage).pressAction??(b.pressAction="profile"),(C=e.plugin.storage).longPressAction??(C.longPressAction="server"),(E=e.plugin.storage).showStatusCutout??(E.showStatusCutout=!1),(k=e.plugin.storage).collapseWhileTyping??(k.collapseWhileTyping=!1);function O(){m.useProxy(e.plugin.storage);const[,t]=n.React.useReducer(function(c){return c+1},0);return n.React.createElement(F,{style:{flex:1},contentContainerStyle:{padding:10}},n.React.createElement(H,{spacing:8},n.React.createElement(f,{title:"Avatar Press Action"},n.React.createElement(i,{label:"Open Profile",checked:e.plugin.storage.pressAction==="profile",onPress:function(){e.plugin.storage.pressAction="profile",t()}}),n.React.createElement(i,{label:"Open Status Picker",checked:e.plugin.storage.pressAction==="server",onPress:function(){e.plugin.storage.pressAction="server",t()}})),n.React.createElement(f,{title:"Avatar Long-Press Action"},n.React.createElement(i,{label:"Open Profile",checked:e.plugin.storage.longPressAction==="profile",onPress:function(){e.plugin.storage.longPressAction="profile",t()}}),n.React.createElement(i,{label:"Open Status Picker",checked:e.plugin.storage.longPressAction==="server",onPress:function(){e.plugin.storage.longPressAction="server",t()}})),n.React.createElement(f,{title:"Status Icon"},n.React.createElement(i,{label:"Show",checked:!!e.plugin.storage.showStatusCutout,onPress:function(){e.plugin.storage.showStatusCutout=!0,t()}}),n.React.createElement(i,{label:"Hide",checked:!e.plugin.storage.showStatusCutout,onPress:function(){e.plugin.storage.showStatusCutout=!1,t()}})),n.React.createElement(f,{title:"Collapse While Typing"},n.React.createElement(i,{label:"Collapse avatar while typing",checked:!!e.plugin.storage.collapseWhileTyping,onPress:function(){e.plugin.storage.collapseWhileTyping=!0,t()}}),n.React.createElement(i,{label:"Always show avatar",checked:!e.plugin.storage.collapseWhileTyping,onPress:function(){e.plugin.storage.collapseWhileTyping=!1,t()}}))))}const h=r.findByProps("useStateFromStores"),T=r.findByDisplayName("ChatInputActions"),I=r.findByDisplayName("ChatInputSendButton");let B=!1,l;const{Pressable:z,View:L,Animated:d}=n.ReactNative,U=new d.Value(0),W=r.findByProps("default","AvatarSizes","getStatusSize")?.default,v=r.findByStoreName("UserStore"),N=r.findByStoreName("SelectedChannelStore"),x=r.findByStoreName("ChannelStore"),D=r.findByStoreName("SelfPresenceStore"),R=r.findByName("showUserProfileActionSheet"),$=r.findByProps("showYouAccountActionSheet");function j(){const[t,c]=a.useState(!1),s=h?.useStateFromStores?.([v],function(){return v?.getCurrentUser?.()}),S=h?.useStateFromStores?.([D],function(){return D?.getStatus?.()}),o=e.plugin.storage,g=h?.useStateFromStores?.([N],function(){return N?.getCurrentlySelectedChannelId?.()}),y=h?.useStateFromStores?.([x],function(){return x?.getChannel?.(g)},[g]),P=a.useRef(U).current;if(a.useEffect(function(){const u=setInterval(function(){c(B)},100);return function(){return clearInterval(u)}},[]),a.useEffect(function(){const u=o.collapseWhileTyping&&t;d.parallel([d.timing(P,{toValue:u?1:0,duration:200,useNativeDriver:!1})]).start()},[t,o.collapseWhileTyping,P]),!s)return null;const V=function(){const u=$?.showYouAccountActionSheet;if(typeof u=="function")try{u(!0,!0);return}catch{}R?.({userId:s.id,channelId:y?.id??g})},Y=function(){switch(o.pressAction){case"profile":R?.({userId:s.id,channelId:y?.id??g});break;case"server":V();break}},M=function(){switch(o.longPressAction){case"profile":R?.({userId:s.id,channelId:y?.id??g});break;case"server":V();break}};return a.createElement(d.View,{style:{height:40,width:P.interpolate({inputRange:[0,1],outputRange:[40,0]}),marginHorizontal:P.interpolate({inputRange:[0,1],outputRange:[4,0]}),flexShrink:0,flexDirection:"row",alignItems:"center",justifyContent:"center",overflow:o.collapseWhileTyping?"hidden":"visible"}},a.createElement(z,{onPress:Y,onLongPress:M},W&&a.createElement(W,{user:s,guildId:y?.guild_id,status:o.showStatusCutout?S:void 0,avatarDecoration:s?.avatarDecoration,animate:!o.collapseWhileTyping||!t})))}const p=[];var G={onLoad(){!T?.prototype?.render||!I?.prototype?.render||(p.push(A.after("render",T.prototype,function(t,c){return a.createElement(L,{style:{flexDirection:"row",alignItems:"center"}},c,a.createElement(j))})),p.push(A.after("render",I.prototype,function(t,c){setImmediate(function(){setImmediate(function(){if(t?.[1]?.current){l=t[1].current;const s=l?.setHasText;p.push(function(){l&&s&&(l.setHasText=s)}),l&&(l.setHasText=function(S){if(B=S,s)return s.call(l,S)})}})})})))},onUnload(){for(const t of p)t?.();p.length=0},settings:O};return w.default=G,Object.defineProperty(w,"__esModule",{value:!0}),w})({},vendetta.patcher,vendetta.metro,vendetta.metro.common,vendetta,window.React,vendetta.storage); diff --git a/ChatboxAvatar/manifest.json b/ChatboxAvatar/manifest.json deleted file mode 100644 index 0372893..0000000 --- a/ChatboxAvatar/manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"authors":[{"name":"Cynosphere","id":"150745989836308480"},{"name":"kmmiio99o","id":"879393496627306587"}],"main":"index.js","vendetta":{"icon":"UserSquareIcon"},"name":"Chatbox Avatar","description":"Quickly view your profile from the chatbox.","hash":"e0851ea8a5c04157c20fc4de4767b1e03b49c2eff39730bdb0b2674bdbd9e9cb"} \ No newline at end of file