This commit is contained in:
amsyarasyiq 2023-04-27 06:51:02 +00:00
parent d6cba262d6
commit 37a758f8c2
12 changed files with 12 additions and 12 deletions

View file

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

View file

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

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"64741e14806e965845b0ebf3ed9f46fbbb4b5691352021c268ca0dc71d05fab1"}
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"0275abf3ddb12fa47986b16e887c062e18232b91c5c2d8ac4c7efbee1f165d1b"}

View file

@ -1 +1 @@
(function(s,u,o){"use strict";function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function w(n,t,e){return t&&h(n.prototype,t),e&&h(n,e),n}function m(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const y=o.findByProps("show","confirm","close"),v=o.findByProps("addRelationship"),b=o.findByProps("handleStartCall"),$=o.findByProps("hideActionSheet"),C=o.findByStoreName("UserStore");var g=new(function(){function n(){p(this,n),m(this,"patches",[])}return w(n,[{key:"onLoad",value:function(){var t=this;this.patches.push(u.patcher.instead("handleStartCall",b,function(e,r){const[{rawRecipients:[{username:i,discriminator:l},a]},f]=e,c=f?"video call":"call";y.show({title:a?`Start a group ${c}?`:`Start a ${c} with ${i}#${l}?`,body:a?"Are you sure you want to start the group call?":`Are you sure you want to ${c} ${i}#${l}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{r(...e)}catch(d){u.logger.error("Failed to start call",d)}}})})),this.patches.push(u.patcher.instead("addRelationship",v,function(e,r){if(typeof e[0]!="object"||!e[0].userId)return r.apply(t,e);const{username:i,discriminator:l}=C.getUser(e[0].userId),a=setInterval(function(){return $.hideActionSheet()},100);setTimeout(function(){return clearInterval(a)},3e3);const f=e[0].type===2;return new Promise(function(c){y.show({title:`${f?"Block":"Friend"} ${i}#${l}?`,body:`Are you sure you want to ${f?"block":"friend"} ${i}#${l}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{c(r.apply(t,e))}catch(d){u.logger.error("Failed to add relationship",d)}finally{clearInterval(a)}},onCancel:function(){return void clearInterval(a)}})})}))}},{key:"onUnload",value:function(){for(const t of this.patches)t()}}]),n}());return s.default=g,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro);
(function(s,u,o){"use strict";function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function h(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function w(n,t,e){return t&&h(n.prototype,t),e&&h(n,e),n}function m(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const y=o.findByProps("show","confirm","close"),v=o.findByProps("addRelationship"),b=o.findByProps("handleStartCall"),$=o.findByProps("hideActionSheet"),g=o.findByStoreName("UserStore");var C=new(function(){function n(){p(this,n),m(this,"patches",[])}return w(n,[{key:"onLoad",value:function(){var t=this;this.patches.push(u.patcher.instead("handleStartCall",b,function(e,r){const[{rawRecipients:[{username:i,discriminator:c},a]},f]=e,l=f?"video call":"call";y.show({title:a?`Start a group ${l}?`:`Start a ${l} with ${i}#${c}?`,body:a?"Are you sure you want to start the group call?":`Are you sure you want to ${l} ${i}#${c}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{r(...e)}catch(d){u.logger.error("Failed to start call",d)}}})})),this.patches.push(u.patcher.instead("addRelationship",v,function(e,r){if(typeof e[0]!="object"||!e[0].userId)return r.apply(t,e);const{username:i,discriminator:c}=g.getUser(e[0].userId),a=setInterval(function(){return $.hideActionSheet()},100);setTimeout(function(){return clearInterval(a)},3e3);const f=e[0].type===2;return new Promise(function(l){y.show({title:`${f?"Block":"Friend"} ${i}#${c}?`,body:`Are you sure you want to ${f?"block":"friend"} ${i}#${c}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{l(r.apply(t,e))}catch(d){u.logger.error("Failed to add relationship",d)}finally{clearInterval(a)}},onCancel:function(){return void clearInterval(a)}})})}))}},{key:"onUnload",value:function(){for(const t of this.patches)t()}}]),n}());return s.default=C,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro);

View file

@ -1 +1 @@
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","vendetta":{"icon":"check"},"hash":"cf085ac20850732e27452392455f713f609d6a7112e640e2c03934e68a2d9b2e"}
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","vendetta":{"icon":"check"},"hash":"11881e9cc757d09e924e921cef255a3efa83173d2a723660f8c63abd1fe5a907"}

View file

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

View file

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

View file

@ -1 +1 @@
(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);
(function(t,u,o){"use strict";function c(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 r(e,n,l){return n&&f(e.prototype,n),l&&f(e,l),e}let i;var g=new(function(){function e(){c(this,e)}return r(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 @@
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","vendetta":{"icon":"StatusIdle"},"hash":"aaf6bce701b8c5ef28c871ec147b0078ce70c9e6c439cab110893553f27751c2"}
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","vendetta":{"icon":"StatusIdle"},"hash":"65f8433e59b46edc78b3b7ed188f860b6091857660dff990931b1be3d19bb8e6"}

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"RichPresence","description":"Sets Discord Rich Presence for your profile.","vendetta":{"icon":"games"},"hash":"766a4a396a8723e70994b7f770978e9bcce542f396ca6dd7b5e8e3f4bec45c80"}
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"RichPresence","description":"Sets Discord Rich Presence for your profile.","vendetta":{"icon":"games"},"hash":"23b1d878fef631d419f07643bfefcede5bf289e6e7ee1f7b021d3b5cfe4251d7"}