Plugin

PlainFolderIcon

Dont show the small guild icons in folders

Appearance Customisation
index.ts
Download

Source

src/plugins/plainFolderIcon/index.ts
1import "./style.css";
2
3import { Devs } from "@utils/constants";
4import definePlugin from "@utils/types";
5
6export default definePlugin({
7 name: "PlainFolderIcon",
8 description: "Dont show the small guild icons in folders",
9 tags: ["Appearance", "Customisation"],
10 authors: [Devs.botato],
11
12 patches: [
13 {
14 find: "#{intl::GUILD_FOLDER_TOOLTIP_A11Y_LABEL}",
15 replacement: [
16 {
17 // Discord always renders both plain and guild icons folders and uses a css transtion to switch between them
18 match: /\.slice\(0,4\).+?\]:(\i),\[\i\.\i\]:!\1/,
19 replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":!${hasFolderButtonContent}`
20 }
21
22 ]
23 }
24 ]
25});
26