From 56c5791685529a3cffdc6e8d1464075587536da8 Mon Sep 17 00:00:00 2001 From: everestmcarthur Date: Sun, 2 Aug 2026 00:24:31 +0000 Subject: [PATCH] deploy: 50bea29d518074f144fb2ec844866e1c806f44a7 --- plugins-data.json | 2 +- you-bar-plus/install/index.js | 2 +- you-bar-plus/install/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins-data.json b/plugins-data.json index d05755a..c8b2479 100644 --- a/plugins-data.json +++ b/plugins-data.json @@ -195,7 +195,7 @@ { "id": "you-bar-plus", "name": "YouBar+", - "description": "Adds up to 2 configurable buttons (Direct Messages, Settings, or none) to the YouBar, in whatever order you pick.", + "description": "Adds Settings and DM buttons to the YouBar. (May require a restart after enabling.)", "authors": [ "everestmcarthur", "Purple_Ξye™" diff --git a/you-bar-plus/install/index.js b/you-bar-plus/install/index.js index 6d23a89..0f10abd 100644 --- a/you-bar-plus/install/index.js +++ b/you-bar-plus/install/index.js @@ -1 +1 @@ -(function(h,b,i,y,r,E,g,S,P){"use strict";function F(t,e,a,o){try{return a()}catch(n){return o.error(`[${t}] Failed to apply the "${e}" patch, that surface will be skipped: ${n}`),function(){}}}function I(t,e,a){const o=Object.entries(a).map(function([n,u]){return F(t,n,u,e)});return function(){return o.forEach(function(n){return n()})}}function D(t,e,a=100){let o=!1,n;const u=t();return u?(e(u),{cancel(){}}):(n=setInterval(function(){if(o)return;const c=t();c&&(o=!0,clearInterval(n),e(c))},a),{cancel(){o=!0,n&&clearInterval(n)}})}function M(t){const e=window?.modules;if(e)for(const a in e){const o=e[a];if(!o?.isInitialized)continue;const n=o.publicModule?.exports;if(n)try{if(t(n))return n;if(n.default!=null&&t(n.default))return n.default}catch{}}}function N(t){return M(function(e){return e?.name===t||e?.displayName===t||e?.type?.name===t||e?.type?.displayName===t})}function v(t){try{t&&typeof t=="object"&&"compare"in t&&(t.compare=function(){return!1})}catch{}}let l=null,f=null;function p(){l?l():f&&v(f)}function z(){let t=function(){};const e=D(function(){return N("YouBarNotificationsButton")},function(a){t=V(a),f=a,v(a)});return function(){e.cancel(),t(),l=null,f=null}}function V(t){const e=y.findByProps("openUserSettings"),a=y.findByProps("transitionToGuild"),o=g.getAssetIDByName("ChatIcon"),n=g.getAssetIDByName("SettingsIcon");return E.instead("type",t,function(u,c){try{const[,L]=r.React.useReducer(function(U){return~U},0);l=function(){return L()};const s=c(...u);if(!s?.props?.children)return s;const R=s.props.children.type,d=s.props.children.props;return r.React.createElement(r.React.Fragment,null,i.storage.showDMButton&&r.React.createElement(R,{variant:d?.variant||"tertiary",size:d?.size||"sm",icon:o,onPress:function(){return a?.transitionToGuild?.("@me")}}),i.storage.showSettingsButton&&r.React.createElement(R,{variant:d?.variant||"tertiary",size:d?.size||"sm",icon:n,onPress:function(){return e?.openUserSettings?.()}}),s)}catch{return c(...u)}})}const{ScrollView:Y,View:$}=r.ReactNative;function m({children:t}){return r.React.createElement(Y,{style:{flex:1}},t,r.React.createElement($,{style:{height:24}}))}const{View:x,Text:C}=r.ReactNative;function T({children:t,style:e}){return r.React.createElement(x,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},e]},r.React.createElement(C,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},t))}const{FormSection:j,FormSwitchRow:w}=P.Forms;function k(){return S.useProxy(i.storage),r.React.useEffect(function(){return function(){return p()}},[]),r.React.createElement(m,null,r.React.createElement(T,null,"Fork of Purple-EyeZ's YouBar+, ported to Revenge's Vendetta-compat API with a fix for a startup race that could silently skip the button patch for an entire session."),r.React.createElement(j,{title:"Buttons"},r.React.createElement(w,{label:"Direct Messages button",subLabel:"Show the DM button in the YouBar",value:!!i.storage.showDMButton,onValueChange:function(t){i.storage.showDMButton=t,p()}}),r.React.createElement(w,{label:"Settings button",subLabel:"Show the Settings button in the YouBar",value:!!i.storage.showSettingsButton,onValueChange:function(t){i.storage.showSettingsButton=t,p()}})))}let B=function(){};var A={onLoad:function(){i.storage.showDMButton??=!1,i.storage.showSettingsButton??=!0,B=I("YouBar+",b.logger,{"YouBar buttons":z})},onUnload:function(){return B()},settings:k};return h.default=A,Object.defineProperty(h,"__esModule",{value:!0}),h})({},vendetta,vendetta.plugin,vendetta.metro,vendetta.metro.common,vendetta.patcher,vendetta.ui.assets,vendetta.storage,vendetta.ui.components); +(function(l,B,n,d,t,R,h,b,v){"use strict";function w(e,r,o,i){try{return o()}catch(a){return i.error(`[${e}] Failed to apply the "${r}" patch, that surface will be skipped: ${a}`),function(){}}}function E(e,r,o){const i=Object.entries(o).map(function([a,f]){return w(e,a,f,r)});return function(){return i.forEach(function(a){return a()})}}let u=function(){};function S(){const e=d.findByTypeName("YouBarNotificationsButton"),r=d.findByProps("openUserSettings"),o=d.findByProps("transitionToGuild"),i=h.getAssetIDByName("SettingsIcon"),a=h.getAssetIDByName("ChatIcon");return e?R.instead("type",e,function(f,$){const[,C]=t.React.useReducer(function(L){return~L},0);u=function(){return C()};const s=$(...f);if(!s?.props?.children)return s;const y=s.props.children.type,c=s.props.children.props;return t.React.createElement(t.React.Fragment,null,n.storage.showDMButton&&t.React.createElement(y,{variant:c?.variant||"tertiary",size:c?.size||"sm",icon:a,onPress:function(){o?.transitionToGuild?.("@me")}}),n.storage.showSettingsButton&&t.React.createElement(y,{variant:c?.variant||"tertiary",size:c?.size||"sm",icon:i,onPress:function(){r?.openUserSettings?.()}}),s)}):function(){}}const{ScrollView:P,View:D}=t.ReactNative;function Y({children:e}){return t.React.createElement(P,{style:{flex:1}},e,t.React.createElement(D,{style:{height:24}}))}const{View:M,Text:V}=t.ReactNative;function z({children:e,style:r}){return t.React.createElement(M,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},r]},t.React.createElement(V,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},e))}const{FormSection:F,FormSwitchRow:g}=v.Forms;function N(){return b.useProxy(n.storage),t.React.useEffect(function(){return function(){return u()}},[]),t.React.createElement(Y,null,t.React.createElement(z,null,"Fork of Purple-EyeZ's YouBar+, ported to Revenge's Vendetta-compat API. Like the original, this patches the YouBar the moment it loads - if you enable it while Discord's already running, you may need to restart once for the buttons to appear."),t.React.createElement(F,{title:"Buttons"},t.React.createElement(g,{label:"Direct Messages button",subLabel:"Show the DM button in the YouBar",value:!!n.storage.showDMButton,onValueChange:function(e){n.storage.showDMButton=e,u()}}),t.React.createElement(g,{label:"Settings button",subLabel:"Show the Settings button in the YouBar",value:!!n.storage.showSettingsButton,onValueChange:function(e){n.storage.showSettingsButton=e,u()}})))}let p=function(){};var I={onLoad:function(){n.storage.showDMButton??=!1,n.storage.showSettingsButton??=!0,p=E("YouBar+",B.logger,{"YouBar buttons":S})},onUnload:function(){return p()},settings:N};return l.default=I,Object.defineProperty(l,"__esModule",{value:!0}),l})({},vendetta,vendetta.plugin,vendetta.metro,vendetta.metro.common,vendetta.patcher,vendetta.ui.assets,vendetta.storage,vendetta.ui.components); diff --git a/you-bar-plus/install/manifest.json b/you-bar-plus/install/manifest.json index 46173f2..93818ab 100644 --- a/you-bar-plus/install/manifest.json +++ b/you-bar-plus/install/manifest.json @@ -1 +1 @@ -{"name":"YouBar+","description":"Adds up to 2 configurable buttons (Direct Messages, Settings, or none) to the YouBar, in whatever order you pick.","authors":[{"name":"everestmcarthur"},{"name":"Purple_Ξye™"}],"main":"index.js","hash":"ed5316de1defefd80433dac7bc947670300b5086a434dfa8551725a53a354f91"} \ No newline at end of file +{"name":"YouBar+","description":"Adds Settings and DM buttons to the YouBar. (May require a restart after enabling.)","authors":[{"name":"everestmcarthur"},{"name":"Purple_Ξye™"}],"main":"index.js","hash":"7dc56dabb979819b5940681e8812fd01c092a9c717e10268201bc86486b7c905"} \ No newline at end of file