deploy
This commit is contained in:
parent
92c51ff34d
commit
29b25c2dee
18 changed files with 2 additions and 18 deletions
|
|
@ -1 +0,0 @@
|
|||
(function(a,i,l,f,y,m,c){"use strict";const p=i.findByProps("useStateFromStores"),s=i.findByStoreName("SpotifyStore"),d=i.findByProps("Sizes","Looks"),g=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:m.getAssetIDByName("ic_headphone")})},onPress:function(){return void g.sync(e.activity,e.user.id)}}))}let u;var S={onLoad(){const e=function(){return l.i18n.Messages.USER_ACTIVITY_HEADER_LISTENING?.intlMessage?.format({name:"Spotify"})};u=f.before("default",i.findByName("UserProfileSection",!1),function([r]){if(r.title!==e())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=S,Object.defineProperty(a,"__esModule",{value:!0}),a})({},vendetta.metro,vendetta.metro.common,vendetta.patcher,vendetta.utils,vendetta.ui.assets,vendetta.metro.common.ReactNative);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"BetterSpotifyIntegration","description":"Shrimply better integration with Spotify","vendetta":{},"hash":"17b87ab5ceb755b2574636d166d9315c859363d0cf9029dcca3f1aa14cf434dc"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(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);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"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"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(e,o,c){"use strict";const t=o.findByProps("selectGIF"),r=c.instead("selectGIF",t,function(n){n[1]?n[1]=n[1].url:n[0]=n[0].url,t.insertText(...n)});return e.onUnload=r,e})({},vendetta.metro,vendetta.patcher);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"HoldGIFSend","description":"Hold GIF links to chat input before sending them.","vendetta":{"icon":"gif"},"hash":"3c082ce4efced3cdae6261ee9a17ff5f9c8a06d570c04d54da4eaf0c24b6ac50"}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"},{"name":"kmmiio99o","id":"879393496627306587"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"1f58d0c98589b516a9083670a6d1a223b188dd58d166481082a7f8f72b124391"}
|
||||
{"authors":[{"name":"pylix","id":"492949202121261067"},{"name":"kmmiio99o","id":"879393496627306587"}],"main":"index.js","name":"Last.fm","description":"Show off your last.fm status on your Discord profile.","vendetta":{"icon":"ic_stage_music"},"hash":"91870e97c648f4aca6041340681e8400d81d7fbb988473e12be3ff9a7659a76d"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(s,u,o){"use strict";function p(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function h(a,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function v(a,n,e){return n&&h(a.prototype,n),e&&h(a,e),a}const y=o.findByProps("show","confirm","close"),w=o.findByProps("addRelationship"),m=o.findByProps("handleStartCall"),$=o.findByProps("hideActionSheet"),b=o.findByStoreName("UserStore");var g=new(function(){function a(){p(this,a)}return v(a,[{key:"onLoad",value:function(){var n=this;this.patches.push(u.patcher.instead("handleStartCall",m,function(e,t){const[{rawRecipients:[{username:i,discriminator:c},r]},f]=e,l=f?"video call":"call";y.show({title:r?`Start a group ${l}?`:`Start a ${l} with ${i}#${c}?`,body:r?"Are you sure you want to start the group call?":`Are you sure you want to ${l} ${i}#${c}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{t(...e)}catch(d){u.logger.error("Failed to start call",d)}}})})),this.patches.push(u.patcher.instead("addRelationship",w,function(e,t){if(typeof e[0]!="object"||!e[0].userId)return t.apply(n,e);const{username:i,discriminator:c}=b.getUser(e[0].userId),r=setInterval(function(){return $.hideActionSheet()},100);setTimeout(function(){return clearInterval(r)},3e3);const f=e[0].type===2;return new Promise(function(l){y.show({title:`${f?"Block":"Friend"} ${i}#${c}?`,body:`Are you sure you want to ${f?"block":"friend"} ${i}#${c}?`,confirmText:"Yes",cancelText:"Cancel",confirmColor:"brand",onConfirm:function(){try{l(t.apply(n,e))}catch(d){u.logger.error("Failed to add relationship",d)}finally{clearInterval(r)}},onCancel:function(){return void clearInterval(r)}})})}))}},{key:"onUnload",value:function(){for(const n of this.patches)n()}}]),a}());return s.default=g,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"MoreConfirm","description":"Prompts confirmations before making irreversible actions.","vendetta":{"icon":"check"},"hash":"0b869eb2bd546e0bb7457d57b758cdb4f2a0448ad6ff9b11248ceba70cf430ee"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(s,y,R,c,e,b,u,m,g,l){"use strict";const f=R.findByStoreName("UserStore"),{FormInput:v,FormDivider:h,FormText:x,FormIcon:d,FormRow:p,FormSection:F,FormSwitchRow:I}=m.Forms,E=e.stylesheet.createThemedStyleSheet({avatar:{height:36,width:36,borderRadius:18},button:{marginRight:12}});function k({callback:n}){return e.React.createElement(l.TouchableOpacity,{onPress:n},e.React.createElement(x,{style:E.button},"ADD"))}function S({onFinish:n}){const[a,o]=g.useState(""),r=function(){!isNaN(parseInt(a))&&f.getUser(a)&&!t.exempted.includes(a)&&(t.exempted=[...t.exempted,a],o("")),n()};return e.React.createElement(p,{leading:e.React.createElement(d,{source:u.getAssetIDByName("ic_add_friend")}),label:e.React.createElement(v,{autoFocus:!0,title:"User ID",placeholder:"123456789012345678",value:a,keyboardType:"numeric",onChangeText:function(i){return o(i.replace(/[^0-9]/g,"").trim())},returnKeyType:"done"}),trailing:e.React.createElement(l.TouchableOpacity,{onPress:r},e.React.createElement(d,{source:u.getAssetIDByName("ic_add_24px")}))})}function w(){b.useProxy(t);const[n,a]=g.useState(!1),o=e.NavigationNative.useNavigation();return g.useEffect(function(){o.setOptions({headerRight:function(){return e.React.createElement(k,{callback:function(){return a(!0)}})}})},[]),e.React.createElement(l.ScrollView,null,e.React.createElement(I,{label:"Enable blacklist mode",subLabel:"If enabled, only users in the exempted list will be affected by the plugin.",leading:e.React.createElement(d,{source:u.getAssetIDByName("ic_block")}),value:t.isBlacklistMode,onValueChange:function(r){return t.isBlacklistMode=r}}),e.React.createElement(F,{title:"Exempted Users"},t.exempted?.length>0&&e.React.createElement(l.FlatList,{data:t.exempted,keyExtractor:function(r){return r},renderItem:function({item:r}){const i=f.getUser(r);if(!i)throw new Error("User not found/is not cached");return e.React.createElement(p,{label:i.username,leading:e.React.createElement(l.Image,{style:E.avatar,source:{uri:i.getAvatarURL()}}),trailing:e.React.createElement(l.TouchableOpacity,{onPress:function(){t.exempted=t.exempted.filter(function(U){return U!==r})}},e.React.createElement(d,{source:u.getAssetIDByName("Small"),disableColor:!0}))})},ItemSeparatorComponent:h}),n&&e.React.createElement(e.React.Fragment,null,e.React.createElement(h,null),e.React.createElement(S,{onFinish:function(){return a(!1)}}))))}c.storage.isBlacklistMode??=!1,c.storage.exempted??=[];const t=c.storage,B=R.findByProps("createPendingReply");var T={settings:w,onUnload:y.patcher.before("createPendingReply",B,function([n]){const a=c.storage.exempted.includes(n.message?.author?.id);n.shouldMention&&=c.storage.isBlacklistMode?!a:a})};return s.default=T,s.settings=t,Object.defineProperty(s,"__esModule",{value:!0}),s})({},vendetta,vendetta.metro,vendetta.plugin,vendetta.metro.common,vendetta.storage,vendetta.ui.assets,vendetta.ui.components,window.React,vendetta.metro.common.ReactNative);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoAutoReplyMention","description":"Turns off auto mention when replying to someone.","vendetta":{"icon":"ic_notif_off"},"hash":"0d882ee8d7efd8a700489134d93dff5e71b086947f27f7903470342de1f21bd7"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(t,e,n){"use strict";const o=e.patcher.before("dispatch",n.FluxDispatcher,function([{type:c}]){if(c==="IDLE")return[{type:"IDLE",idle:!1}]});return t.onUnload=o,t})({},vendetta,vendetta.metro.common);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"NoIdle","description":"Prevent status from idling when Discord is in the background.","vendetta":{"icon":"StatusIdle"},"hash":"586fb75d5825daaf8c82c8f82a3f949409442f4300d7d4a3453a422457fbe113"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(e,n,t,o){"use strict";var r={onLoad(){var a=this;n.plugins.removePlugin(n.plugin.id),setTimeout(function(){return o.showConfirmationAlert({title:"Install Pyoncord?",content:"Loader's settings will be overriden to load Pyoncord instead. You may not be able to revert to Vendetta whenever Pyoncord breaks!",confirmText:"Continue and Restart",cancelText:"Nevermind",onConfirm:a.install})},300)},async install(){t.config.customLoadUrl?(t.config.customLoadUrl.enabled=!0,t.config.customLoadUrl.url="https://raw.githubusercontent.com/pyoncord/pyoncord/builds/pyoncord.js",setTimeout(globalThis.nativeModuleProxy.BundleUpdaterManager.reload,100)):alert("not a proper vendetta loader!")}};return e.default=r,Object.defineProperty(e,"__esModule",{value:!0}),e})({},vendetta,vendetta.loader,vendetta.ui.alerts);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"PyoncordInstaller","description":"installs pyoncord.exe (virus)","hash":"1b5e098c2311414d11f88ec82b9cf69a4032ff39ee880f300fd34725742ba8a5"}
|
||||
|
|
@ -1 +0,0 @@
|
|||
(function(a,s,g,d){"use strict";function b(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n,e){return n&&o(t.prototype,n),e&&o(t,e),t}function l(t){return t&&typeof t.length=="number"?t.length>0:t||t===0||t===!1}function h(t){return JSON.parse(JSON.stringify(t,function(n,e){if(e===t)return e;if(!(typeof n=="string"&&n.startsWith("_")))switch(typeof e){case"object":{if(Array.isArray(e)&&e.length===0)return;const r=Object.entries(e).filter(function(A){return l(A[1])});return r.length>0?Object.fromEntries(r):void 0}default:return l(e)?e:void 0}}))}var y=function(t){return t[t.PLAYING=0]="PLAYING",t[t.STREAMING=1]="STREAMING",t[t.LISTENING=2]="LISTENING",t[t.WATCHING=3]="WATCHING",t[t.COMPETING=5]="COMPETING",t}(y||{});const u=g.findByProps("getAssetIds"),c=Date.now(),i=s.plugin.storage;typeof i.selected?.length!="number"&&Object.assign(i,{selected:"default",selections:{default:I()}});function I(){return{name:"Discord",application_id:"1054951789318909972",flags:0,type:0,timestamps:{_enabled:!1,start:c},assets:{},buttons:[{},{}]}}async function f(t){if(typeof t!="object")throw new Error("Invalid activity");if(t){const n=t?.timestamps?._enabled;if(t=h(t),n?t.timestamps.start||=c:delete t.timestamps,t.assets){const e=[t.application_id,[t.assets.large_image,t.assets.small_image]];let r=u.getAssetIds(...e);r.length||(r=await u.fetchAssetIds(...e)),t.assets.large_image=r[0],t.assets.small_image=r[1]}t.buttons?.length?(t.buttons=t.buttons.filter(function(e){return e.label&&e.url}),t.buttons.length?Object.assign(t,{metadata:{button_urls:t.buttons.map(function(e){return e.url})},buttons:t.buttons.map(function(e){return e.label})}):delete t.buttons):delete t.buttons}return d.FluxDispatcher.dispatch({type:"LOCAL_ACTIVITY_UPDATE",activity:t,pid:1608,socketId:"RichPresence@Vendetta"}),t}var p=new(function(){function t(){b(this,t)}return m(t,[{key:"onLoad",value:function(){s.logger.log("Sending RPC request");const n=i.selections[i.selected];if(!n)throw new Error("Selected activity does not exist");f(n).then(function(e){s.logger.log("RPC request sent"),s.logger.log(e)}).catch(function(e){s.logger.error("An error occured while sending RPC request :("),s.logger.error(e?.stack??e)})}},{key:"onUnload",value:function(){s.logger.log("Stopping RPC request"),f(null)}}]),t}());return a.default=p,Object.defineProperty(a,"__esModule",{value:!0}),a})({},vendetta,vendetta.metro,vendetta.metro.common);
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"authors":[{"name":"pylix","id":"492949202121261067"}],"main":"index.js","name":"RichPresence","description":"Sets Discord Rich Presence for your profile.","vendetta":{"icon":"games"},"hash":"f1ad2100a02c2600fc1c4206a9c8659e14718193b7acf3220d41501203c6afd9"}
|
||||
Loading…
Add table
Reference in a new issue