deploy: b84db804ad
This commit is contained in:
parent
acce76d82a
commit
c93e225f8f
10 changed files with 10 additions and 28 deletions
|
|
@ -1 +1 @@
|
||||||
(function(exports,_vendetta,metro){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}let origState;const ChatInput=metro.findByDisplayName("ChatInput");var index = new(function(){function HideGiftButton(){_classCallCheck(this,HideGiftButton);}var _proto=HideGiftButton.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("Starting HideGiftButton...");origState=ChatInput.defaultProps.hideGiftButton;ChatInput.defaultProps.hideGiftButton=true;};_proto.onUnload=function onUnload(){_vendetta.logger.log("Unloading HideGiftButton..");ChatInput.defaultProps.hideGiftButton=origState;};return HideGiftButton}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro);
|
(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);
|
||||||
|
|
|
||||||
|
|
@ -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":"9b9fc17e867866e0674424d44c542243771214fc72585b4819d50a24c92e2289"}
|
{"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"}
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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":"1087f232a8340002a9e8e03369f651085c7bcba655d7391fb20884056d9346d0"}
|
{"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"}
|
||||||
|
|
@ -1,18 +1 @@
|
||||||
(function(exports,_vendetta,metro){'use strict';/*!
|
(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);
|
||||||
* https://github.com/amsyarasyiq/aliucordrn-plugins/blob/6c0be39ca673c6ebcf48c0f397246b76d578aa26/MoarConfirm/index.tsx
|
|
||||||
*
|
|
||||||
* Copyright (c) 2022 Amsyar Rasyiq
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}const dialog=metro.findByProps("show","confirm","close");const CallManager=metro.findByProps("handleStartCall");var index = new(function(){function MoreConfirm(){_classCallCheck(this,MoreConfirm);}var _proto=MoreConfirm.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("MoreConfirm: patching calls...");_vendetta.patcher.instead("handleStartCall",CallManager,function(args,orig){const[{rawRecipients:[{username,discriminator},multiple]},isVideo]=args;const action=isVideo?"video call":"call";dialog.show({title:multiple?`MoreConfirm: Start a group ${action}?`:`MoreConfirm: Start a ${action} with ${username}#${discriminator}?`,body:multiple?"Are you sure you want to start the group call?":`Are you sure you want to ${action} ${username}#${discriminator}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{orig(...args);}catch(e){_vendetta.logger.error("Failed to start call",e);}}});});};return MoreConfirm}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro);
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"94e433cbfbd4551fc7bed612eaec9d5c68ca645d9df0cb4bc6be762d22958cb8"}
|
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"9d5490c54eb51167ed5d13e5d16b64ffaece08a10d491d34148b2c991e5b0b41"}
|
||||||
|
|
@ -1 +1 @@
|
||||||
(function(exports){'use strict';const onUnload=globalThis.vendetta.patcher.before("createPendingReply",globalThis.vendetta.metro.findByProps("createPendingReply"),function(param){let[arg]=param;return arg.shouldMention&&=false});exports.onUnload=onUnload;return exports;})({});
|
(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})({});
|
||||||
|
|
|
||||||
|
|
@ -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":"7712887f12ca89b50048484550a314729e5c6398277052da52a960bfd16ca809"}
|
{"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"}
|
||||||
|
|
@ -1 +1 @@
|
||||||
(function(exports,_vendetta,common){'use strict';function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}let unpatch;var index = new(function(){function NoIdle(){_classCallCheck(this,NoIdle);}var _proto=NoIdle.prototype;_proto.onLoad=function onLoad(){_vendetta.logger.log("Starting NoIdle...");unpatch=_vendetta.patcher.before("dispatch",common.FluxDispatcher,function(param){let[{type}]=param;if(type!=="IDLE")return;return [{type:"IDLE",idle:false}]});};_proto.onUnload=function onUnload(){_vendetta.logger.log("Disabling NoIdle..");unpatch?.();};return NoIdle}());exports.default=index;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},vendetta,vendetta.metro.common);
|
(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);
|
||||||
|
|
|
||||||
|
|
@ -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":"256e4ec951c2e6cd397f16fe007ac0ca68ad3b63ec43acc8d8d23834dbe31b63"}
|
{"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"}
|
||||||
Loading…
Add table
Reference in a new issue