diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index 5459e8edb..59cce166f 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -97,15 +97,21 @@ const settings = definePluginSettings({ accountStandingButton: { type: OptionType.BOOLEAN, description: "Show an account standing button in the header bar", - default: false, restartNeeded: true, - } + default: false, + }, + restoreFileDownloadButton: { + type: OptionType.BOOLEAN, + description: "Adds back the Download button at the top right corner of files", + restartNeeded: true, + default: false + }, }); export default definePlugin({ name: "EquicordHelper", description: "Used to provide support, fix discord caused crashes, and other misc features.", - authors: [Devs.thororen, EquicordDevs.nyx, EquicordDevs.Naibuu, EquicordDevs.keircn, EquicordDevs.SerStars, EquicordDevs.mart], + authors: [Devs.thororen, EquicordDevs.nyx, EquicordDevs.Naibuu, EquicordDevs.keircn, EquicordDevs.SerStars, EquicordDevs.mart, EquicordDevs.omaw], required: true, settings, headerBarButton: { @@ -164,6 +170,7 @@ export default definePlugin({ replace: "true||$&" }, }, + // Show your own activity buttons because discord removes them for who knows why { find: ".USER_PROFILE_ACTIVITY_BUTTONS),", predicate: () => settings.store.showYourOwnActivityButtons && !isPluginEnabled(customRPC.name), @@ -200,6 +207,15 @@ export default definePlugin({ replace: "1" } }, + // Restore File Download Button + { + predicate: () => settings.store.restoreFileDownloadButton, + find: '"VISUAL_PLACEHOLDER":', + replacement: { + match: /(\.downloadUrl,showDownload:)\i/, + replace: "$1!0" + } + }, ], renderMessageAccessory(props) { return (