Plugin
PlainFolderIcon
Dont show the small guild icons in folders
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import "./style.css";8
9
import { Devs } from "@utils/constants";10
import definePlugin from "@utils/types";11
12
export default definePlugin({13
name: "PlainFolderIcon",14
description: "Dont show the small guild icons in folders",15
tags: ["Appearance", "Customisation"],16
authors: [Devs.botato],17
18
patches: [19
{20
find: "#{intl::GUILD_FOLDER_TOOLTIP_A11Y_LABEL}",21
replacement: [22
{23
// Discord always renders both plain and guild icons folders and uses a css transtion to switch between them24
match: /\.slice\(0,4\).+?\]:(\i),\[\i\.\i\]:!\1/,25
replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":!${hasFolderButtonContent}`26
}27
28
]29
}30
]31
});32