This commit is contained in:
amsyarasyiq 2023-02-27 16:50:07 +00:00
parent 8f50bf8d46
commit 1126989cef
8 changed files with 25 additions and 8 deletions

View file

@ -1 +1 @@
(function(t,n,i){"use strict";let o;const e=i.findByDisplayName("ChatInput");var u={onLoad:function(){n.logger.log("Starting HideGiftButton..."),o=e.defaultProps.hideGiftButton,e.defaultProps.hideGiftButton=!0},onUnload:function(){n.logger.log("Unloading HideGiftButton.."),e.defaultProps.hideGiftButton=o}};return t.default=u,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta,vendetta.metro);
!function(t,n,o){"use strict";let e;let i=o.findByDisplayName("ChatInput"),a=function(){function t(){!function(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")}(this,t)}var o=t.prototype;return o.onLoad=function(){n.logger.log("Starting HideGiftButton..."),e=i.defaultProps.hideGiftButton,i.defaultProps.hideGiftButton=!0},o.onUnload=function(){n.logger.log("Unloading HideGiftButton.."),i.defaultProps.hideGiftButton=e},t}();t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}({},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":"0d69138f425fce968b34d7b97fee6d6b1c30d6b8136c8b75c68072533fe6f407"}
{"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":"dc67a237c1d3b7742a0fb004f5783ce77538d638c6fb3582f2df7bd5d83e2af5"}

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":"58e6a5f2b601269f7f6b79a027ce262cf51715fd2c773c2e3e45d4b502fa63cd"}
{"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":"791791ff254d47c04f1ddcf461601121457989d41688c9d5756c79e4e6491298"}

View file

@ -1 +1,18 @@
(function(o,t,e){"use strict";const i=e.findByProps("show","confirm","close"),s=e.findByProps("handleStartCall");var u={onLoad:function(){t.logger.log("MoreConfirm: patching calls..."),t.patcher.instead("handleStartCall",s,function(n,d){const[{rawRecipients:[{username:a,discriminator:l},c]},f]=n,r=f?"video call":"call";i.show({title:c?`MoreConfirm: Start a group ${r}?`:`MoreConfirm: Start a ${r} with ${a}#${l}?`,body:c?"Are you sure you want to start the group call?":`Are you sure you want to ${r} ${a}#${l}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{d(...n)}catch(h){t.logger.error("Failed to start call",h)}}})})}};return o.default=u,Object.defineProperty(o,"__esModule",{value:!0}),o})({},vendetta,vendetta.metro);
!function(t,o,e){"use strict";/*!
* 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/>.
*/let n=e.findByProps("show","confirm","close"),r=e.findByProps("handleStartCall"),a=function(){function t(){!function(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.onLoad=function(){o.logger.log("MoreConfirm: patching calls..."),o.patcher.instead("handleStartCall",r,function(t,e){let[{rawRecipients:[{username:r,discriminator:a},l]},c]=t,i=c?"video call":"call";n.show({title:l?`MoreConfirm: Start a group ${i}?`:`MoreConfirm: Start a ${i} with ${r}#${a}?`,body:l?"Are you sure you want to start the group call?":`Are you sure you want to ${i} ${r}#${a}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{e(...t)}catch(t){o.logger.error("Failed to start call",t)}}})})},t}();t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}({},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":"9cd8f3018bd9c3eeb476231591838865b6258dfd8f60460b8050a427b95e3143"}
{"name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","authors":[{"name":"amsyarasyiq","id":"492949202121261067"}],"main":"index.js","vendetta":{"icon":"check"},"hash":"cba9c7a3326d2eaf34b3a0ad8795940d1721ad929146b21db556fefc9f82d323"}

View file

@ -1 +1 @@
(function(e,t,o){"use strict";let n;var i={onLoad:function(){t.logger.log("Starting NoIdle..."),n=t.patcher.before("dispatch",o.FluxDispatcher,function([{type:l}]){if(l==="IDLE")return[{type:"IDLE",idle:!1}]})},onUnload:function(){t.logger.log("Disabling NoIdle.."),n?.()}};return e.default=i,Object.defineProperty(e,"__esModule",{value:!0}),e})({},vendetta,vendetta.metro.common);
!function(t,e,n){"use strict";let o;let i=function(){function t(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t)}var i=t.prototype;return i.onLoad=function(){e.logger.log("Starting NoIdle..."),o=e.patcher.before("dispatch",n.FluxDispatcher,function(t){let[{type:e}]=t;if("IDLE"===e)return[{type:"IDLE",idle:!1}]})},i.onUnload=function(){e.logger.log("Disabling NoIdle.."),o?.()},t}();t.default=i,Object.defineProperty(t,"__esModule",{value:!0})}({},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":"3edb88659845821f3d3e100356f86aa684319448e7a192c18431aee3e8b08fc2"}
{"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":"30d9755940198cb7ef712d4b13bc55a6f49454ba48496ba986a5df7e7e80e58c"}