Plugin

UnlockedAvatarZoom

Allows you to zoom in further in the image crop tool when changing your avatar

Media Utility
index.ts
Download

Source

src/plugins/unlockedAvatarZoom/index.ts
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { definePluginSettings } from "@api/Settings";
8import { Devs } from "@utils/constants";
9import definePlugin, { makeRange, OptionType } from "@utils/types";
10
11const settings = definePluginSettings({
12 zoomMultiplier: {
13 type: OptionType.SLIDER,
14 description: "Zoom multiplier",
15 markers: makeRange(2, 16),
16 default: 4,
17 },
18});
19
20export default definePlugin({
21 name: "UnlockedAvatarZoom",
22 description: "Allows you to zoom in further in the image crop tool when changing your avatar",
23 tags: ["Media", "Utility"],
24 authors: [Devs.nakoyasha],
25 settings,
26 patches: [
27 {
28 find: "#{intl::AVATAR_UPLOAD_EDIT_MEDIA}",
29 replacement: {
30 match: /maxValue:\d/,
31 replace: "maxValue:$self.settings.store.zoomMultiplier",
32 }
33 }
34 ]
35});
36