Plugin
PlainFolderIcon
Dont show the small guild icons in folders
1
import "./style.css";2
3
import { Devs } from "@utils/constants";4
import definePlugin from "@utils/types";5
6
export 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 them18
match: /\.slice\(0,4\).+?\]:(\i),\[\i\.\i\]:!\1/,19
replace: (m, hasFolderButtonContent) => `${m},"vc-plainFolderIcon-plain":!${hasFolderButtonContent}`20
}21
22
]23
}24
]25
});26