This commit is contained in:
amsyarasyiq 2023-03-13 15:34:59 +00:00
parent c93e225f8f
commit e0e98c3798
10 changed files with 10 additions and 10 deletions

View file

@ -1 +1 @@
(function(e,i,u){"use strict";function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}let a;const o=u.findByDisplayName("ChatInput");var l=new(function(){function t(){f(this,t)}var n=t.prototype;return n.onLoad=function(){i.logger.log("Starting HideGiftButton..."),a=o.defaultProps.hideGiftButton,o.defaultProps.hideGiftButton=!0},n.onUnload=function(){i.logger.log("Unloading HideGiftButton.."),o.defaultProps.hideGiftButton=a},t}());return e.default=l,Object.defineProperty(e,"__esModule",{value:!0}),e})({},vendetta,vendetta.metro);
(function(u,i,r){"use strict";function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function l(e,n){for(var a=0;a<n.length;a++){var t=n[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function c(e,n,a){return n&&l(e.prototype,n),a&&l(e,a),e}let o;const f=r.findByDisplayName("ChatInput");var g=new(function(){function e(){d(this,e)}return c(e,[{key:"onLoad",value:function(){i.logger.log("Starting HideGiftButton..."),o=f.defaultProps.hideGiftButton,f.defaultProps.hideGiftButton=!0}},{key:"onUnload",value:function(){i.logger.log("Unloading HideGiftButton.."),f.defaultProps.hideGiftButton=o}}]),e}());return u.default=g,Object.defineProperty(u,"__esModule",{value:!0}),u})({},vendetta,vendetta.metro);

View file

@ -1 +1 @@
{"name":"HideGiftButton","description":"Hides the gift button in the chat input.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_gift_24px"},"hash":"701da2482a39c1a6318ee705a0aa22d641f351f6f4a94e7b650312ee40614892"}
{"name":"HideGiftButton","description":"Hides the gift button in the chat input.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_gift_24px"},"hash":"cbf5fd2f63e6ba2ff62b3188745eb5304a15abad58daa34db1c54dee213c4e88"}

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_stage_music"},"hash":"0115da099ce96b069defa198473a98844b6ae601b6b0c465fd1a394ae38fae3a"}
{"name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_stage_music"},"hash":"51ba12f5954402fb29ea8410a363def6f2709e01cc9846d8e60c12791158dd51"}

View file

@ -1 +1 @@
(function(t,n,a){"use strict";function u(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}const f=a.findByProps("show","confirm","close"),d=a.findByProps("handleStartCall");var h=new(function(){function o(){u(this,o)}var r=o.prototype;return r.onLoad=function(){n.logger.log("MoreConfirm: patching calls..."),n.patcher.instead("handleStartCall",d,function(c,y){const[{rawRecipients:[{username:l,discriminator:i},s]},C]=c,e=C?"video call":"call";f.show({title:s?`MoreConfirm: Start a group ${e}?`:`MoreConfirm: Start a ${e} with ${l}#${i}?`,body:s?"Are you sure you want to start the group call?":`Are you sure you want to ${e} ${l}#${i}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{y(...c)}catch(p){n.logger.error("Failed to start call",p)}}})})},o}());return t.default=h,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro);
(function(o,r,i){"use strict";function s(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function h(e,n,t){return n&&f(e.prototype,n),t&&f(e,t),e}const y=i.findByProps("show","confirm","close"),d=i.findByProps("handleStartCall");var m=new(function(){function e(){s(this,e)}return h(e,[{key:"onLoad",value:function(){r.logger.log("MoreConfirm: patching calls..."),r.patcher.instead("handleStartCall",d,function(n,t){const[{rawRecipients:[{username:a,discriminator:u},c]},g]=n,l=g?"video call":"call";y.show({title:c?`MoreConfirm: Start a group ${l}?`:`MoreConfirm: Start a ${l} with ${a}#${u}?`,body:c?"Are you sure you want to start the group call?":`Are you sure you want to ${l} ${a}#${u}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{t(...n)}catch(w){r.logger.error("Failed to start call",w)}}})})}}]),e}());return o.default=m,Object.defineProperty(o,"__esModule",{value:!0}),o})({},vendetta,vendetta.metro);

View file

@ -1 +1 @@
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"9d5490c54eb51167ed5d13e5d16b64ffaece08a10d491d34148b2c991e5b0b41"}
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"8de22f67dea0bc2345610fb7ee54d0baaef3d3a599add63da1e5445ef7b2381a"}

View file

@ -1 +1 @@
(function(n){"use strict";const e=globalThis.vendetta.patcher.before("createPendingReply",globalThis.vendetta.metro.findByProps("createPendingReply"),function(t){let[o]=t;return o.shouldMention&&=!1});return n.onUnload=e,n})({});
(function(s,v,f,n,e,b,u,x){"use strict";function F(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function R(a,r,t){return r in a?Object.defineProperty(a,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[r]=t,a}const g=f.findByStoreName("UserStore"),{ScrollView:S,TouchableOpacity:d,Image:m,FlatList:I}=e.ReactNative,{FormInput:P,FormDivider:h,FormText:N,FormIcon:o,FormRow:p,FormSection:T}=x.Forms,y=e.stylesheet.createThemedStyleSheet({avatar:{height:36,width:36,borderRadius:18},button:{marginRight:12}});function _(a){let{callback:r}=a;return e.React.createElement(d,{onPress:r},e.React.createElement(N,{style:y.button},"ADD"))}function w(a){let{onFinish:r}=a;const[t,i]=e.React.useState(""),c=function(){t&&+t&&g.getUser(t)&&!n.storage.exempted.includes(t)&&(n.storage.exempted=[...n.storage.exempted,t],i("")),r()};return e.React.createElement(e.React.Fragment,null,e.React.createElement(h,null),e.React.createElement(p,{leading:e.React.createElement(o,{source:u.getAssetIDByName("ic_add_friend")}),label:e.React.createElement(P,{autoFocus:!0,title:"User ID",placeholder:"123456789012345678",value:t,keyboardType:"numeric",onChangeText:function(l){return i(l.replace(/[^0-9]/g,"").trim())},returnKeyType:"done"}),trailing:e.React.createElement(d,{onPress:c},e.React.createElement(o,{source:u.getAssetIDByName("ic_add_24px")}))}))}function U(){const[a,r]=e.React.useState(!1),t=b.useProxy(n.storage),i=e.NavigationNative.useNavigation();return e.React.useEffect(function(){i.setOptions({headerRight:function(){return e.React.createElement(_,{callback:function(){return r(!0)}})}})},[]),e.React.createElement(S,null,e.React.createElement(T,{title:"Exempted Users",titleStyleType:"no_border"},t.exempted?.length>0&&e.React.createElement(I,{data:t.exempted,keyExtractor:function(c){return c},renderItem:function(c){let{item:l}=c;const E=g.getUser(l);return e.React.createElement(p,{label:E.username,leading:e.React.createElement(m,{style:y.avatar,source:{uri:E.getAvatarURL()}}),trailing:e.React.createElement(d,{onPress:function(){n.storage.exempted=n.storage.exempted.filter(function(C){return C!==l})}},e.React.createElement(o,{source:u.getAssetIDByName("Small"),disableColor:!0}))})},ItemSeparatorComponent:h}),a&&e.React.createElement(w,{onFinish:function(){return r(!1)}})))}const D=f.findByProps("createPendingReply");n.storage.exempted??=[];var A=new function a(){F(this,a),R(this,"settings",U),R(this,"onUnload",v.patcher.before("createPendingReply",D,function(r){let[t]=r;t.shouldMention&&=n.storage.exempted.includes(t.message?.author?.id)}))};return s.default=A,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro,vendetta.plugin,vendetta.metro.common,vendetta.storage,vendetta.ui.assets,vendetta.ui.components);

View file

@ -1 +1 @@
{"name":"NoAutoReplyMention","description":"Turns off auto mention when replying to someone.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_notif_off"},"hash":"4e0fe69544e65b3e9b9b83ccba6fb8eb76b17b2d17ab1f5c65220924dd3b5744"}
{"name":"NoAutoReplyMention","description":"Turns off auto mention when replying to someone.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"ic_notif_off"},"hash":"3d7e4738159925fa69e65006881aaef5c775260316b58044b68608ae817050d5"}

View file

@ -1 +1 @@
(function(t,o,r){"use strict";function l(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}let i;var a=new(function(){function n(){l(this,n)}var e=n.prototype;return e.onLoad=function(){o.logger.log("Starting NoIdle..."),i=o.patcher.before("dispatch",r.FluxDispatcher,function(c){let[{type:u}]=c;if(u==="IDLE")return[{type:"IDLE",idle:!1}]})},e.onUnload=function(){o.logger.log("Disabling NoIdle.."),i?.()},n}());return t.default=a,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro.common);
(function(t,u,o){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function f(e,n){for(var l=0;l<n.length;l++){var a=n[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function c(e,n,l){return n&&f(e.prototype,n),l&&f(e,l),e}let i;var g=new(function(){function e(){r(this,e)}return c(e,[{key:"onLoad",value:function(){u.logger.log("Starting NoIdle..."),i=u.patcher.before("dispatch",o.FluxDispatcher,function(n){let[{type:l}]=n;if(l==="IDLE")return[{type:"IDLE",idle:!1}]})}},{key:"onUnload",value:function(){u.logger.log("Disabling NoIdle.."),i?.()}}]),e}());return t.default=g,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro.common);

View file

@ -1 +1 @@
{"name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"StatusIdle"},"hash":"bc61a8f9235e22cc84c3007f3d02cde50ce140db38ec20a4bb5c0d080fd32736"}
{"name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"StatusIdle"},"hash":"aaf6bce701b8c5ef28c871ec147b0078ce70c9e6c439cab110893553f27751c2"}