From 69a8a2e3c7bb635ac898d80ab5026dd572b1364a Mon Sep 17 00:00:00 2001 From: amsyarasyiq Date: Sun, 20 Aug 2023 18:53:32 +0000 Subject: [PATCH] deploy: b36ff42d59a8a98807ba07fe6a1237031c178b38 --- HideGiftButton/index.js | 2 +- HideGiftButton/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HideGiftButton/index.js b/HideGiftButton/index.js index 545adb8..b69f833 100644 --- a/HideGiftButton/index.js +++ b/HideGiftButton/index.js @@ -1 +1 @@ -(function(t,n){"use strict";const e=n.findByName("ChatInput");var d={onLoad(){e.defaultProps.hideGiftButton=!0},onUnload(){e.defaultProps.hideGiftButton=!1}};return t.default=d,Object.defineProperty(t,"__esModule",{value:!0}),t})({},vendetta.metro); +(function(e,a,i,c,s){"use strict";const u=a.findByName("ChatInput");let n;var d={onLoad(){const f=["ic_thread_normal_24px","ic_gift"].map(function(r){return c.getAssetIDByName(r)});n=i.after("render",u.prototype,function(r,p){const o=s.findInReactTree(p,function(t){return"forceAnimateButtons"in t.props&&t.props.actions});o.props.actions=o.props.actions.filter(function(t){return!f.includes(t.source)})})},onUnload:n};return e.default=d,Object.defineProperty(e,"__esModule",{value:!0}),e})({},vendetta.metro,vendetta.patcher,vendetta.ui.assets,vendetta.utils); diff --git a/HideGiftButton/manifest.json b/HideGiftButton/manifest.json index c436b93..25a13a9 100644 --- a/HideGiftButton/manifest.json +++ b/HideGiftButton/manifest.json @@ -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":"396107bace5af9e356aa5ae29c6a33f732189d3abbeba82af79213fcbd591907"} \ No newline at end of file +{"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":"82469237648afb9c76c35bd6e64222d40933bddeca7c11335977147cbaebd6c5"} \ No newline at end of file