Plugin

PlainFolderIcon

Dont show the small guild icons in folders

Appearance Customisation
index.ts
Download

Source

src/plugins/plainFolderIcon/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 "./style.css";
8
9import { Devs } from "@utils/constants";
10import definePlugin from "@utils/types";
11
12export 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 them
24 match: /\.slice\(0,4\).+?\]:(\i),\[\i\.\i\]:!\1/,
25 replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":!${hasFolderButtonContent}`
26 }
27
28 ]
29 }
30 ]
31});
32