From c7859a3f07ef2b85e5c58ef1f93dfee3b676b6b4 Mon Sep 17 00:00:00 2001 From: amsyarasyiq Date: Tue, 25 Jul 2023 14:42:46 +0000 Subject: [PATCH] deploy: de52c10391361f56a4a2d891d623aa113099b713 --- BetterSpotifyIntegration/index.js | 2 +- BetterSpotifyIntegration/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BetterSpotifyIntegration/index.js b/BetterSpotifyIntegration/index.js index a90da40..f32d6e7 100644 --- a/BetterSpotifyIntegration/index.js +++ b/BetterSpotifyIntegration/index.js @@ -1 +1 @@ -(function(a,i,l,y,f,c){"use strict";const p=i.findByProps("useStateFromStores"),s=i.findByStoreName("SpotifyStore"),d=i.findByProps("Sizes","Looks"),m=i.findByProps("play","sync");function v(e){const r=p.useStateFromStores([s],function(){return s.getActivity()?.party?.id}),t=e.isCurrentUser||e.activity?.party?.id===r;return React.createElement(c.View,{pointerEvents:t?"none":"auto"},React.createElement(d,{text:t?"You are already along for this ride":"Listen Along",size:d.Sizes.SMALL,style:{marginTop:12,backgroundColor:e.activityButtonColor,opacity:t?.5:1},renderIcon:function(){return React.createElement(c.Image,{style:{height:16,width:16,marginRight:8,tintColor:"white"},source:f.getAssetIDByName("ic_headphone")})},onPress:function(){return void m.sync(e.activity,e.user.id)}}))}let u;var h={onLoad(){u=l.before("default",i.findByName("UserProfileSection",!1),function(e){let[r]=e;if(r?.title?.includes?.("Spotify")||r.activity.type!==2)return;const t=y.findInReactTree(r.children,function(n){return n?.style?.padding===0}),o=t?.children?.findIndex?.(function(n){return n?.type?.name==="Actions"});if(o&&o!==-1){const n=t.children[o];t.children[o]=React.createElement(React.Fragment,null,n,React.createElement(v,n.props))}})},onUnload(){u?.()}};return a.default=h,Object.defineProperty(a,"__esModule",{value:!0}),a})({},vendetta.metro,vendetta.patcher,vendetta.utils,vendetta.ui.assets,vendetta.metro.common.ReactNative); +(function(a,i,l,y,f,c){"use strict";const p=i.findByProps("useStateFromStores"),s=i.findByStoreName("SpotifyStore"),d=i.findByProps("Sizes","Looks"),m=i.findByProps("play","sync");function v(e){const r=p.useStateFromStores([s],function(){return s.getActivity()?.party?.id}),t=e.isCurrentUser||e.activity?.party?.id===r;return React.createElement(c.View,{pointerEvents:t?"none":"auto"},React.createElement(d,{text:t?"You are already along for this ride":"Listen Along",size:d.Sizes.SMALL,style:{marginTop:12,backgroundColor:e.activityButtonColor,opacity:t?.5:1},renderIcon:function(){return React.createElement(c.Image,{style:{height:16,width:16,marginRight:8,tintColor:"white"},source:f.getAssetIDByName("ic_headphone")})},onPress:function(){return void m.sync(e.activity,e.user.id)}}))}let u;var h={onLoad(){u=l.before("default",i.findByName("UserProfileSection",!1),function(e){let[r]=e;if(r?.title?.includes?.("Spotify")||r?.activity?.type!==2)return;const t=y.findInReactTree(r.children,function(n){return n?.style?.padding===0}),o=t?.children?.findIndex?.(function(n){return n?.type?.name==="Actions"});if(o&&o!==-1){const n=t.children[o];t.children[o]=React.createElement(React.Fragment,null,n,React.createElement(v,n.props))}})},onUnload(){u?.()}};return a.default=h,Object.defineProperty(a,"__esModule",{value:!0}),a})({},vendetta.metro,vendetta.patcher,vendetta.utils,vendetta.ui.assets,vendetta.metro.common.ReactNative); diff --git a/BetterSpotifyIntegration/manifest.json b/BetterSpotifyIntegration/manifest.json index a72f3c9..744cf14 100644 --- a/BetterSpotifyIntegration/manifest.json +++ b/BetterSpotifyIntegration/manifest.json @@ -1 +1 @@ -{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"BetterSpotifyIntegration","description":"Shrimply better integration with Spotify","vendetta":{},"hash":"2f781facd371cea83a2a6e9f6a035bf4c29851c747a8318a2a333296f6457143"} \ No newline at end of file +{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"BetterSpotifyIntegration","description":"Shrimply better integration with Spotify","vendetta":{},"hash":"ff5832827d21bada1d9f38f37d88fef987ad9dc8f76659105d7694acd35da7bb"} \ No newline at end of file