feat(plugins): add folder svg icon plugin (#16)
This commit is contained in:
parent
bfee307194
commit
3e64054283
1 changed files with 14 additions and 0 deletions
14
src/plugins/folderSvgIcon.ts
Normal file
14
src/plugins/folderSvgIcon.ts
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import definePlugin from "../utils/types";
|
||||||
|
|
||||||
|
export default definePlugin({
|
||||||
|
name: "Folder SVG Icon",
|
||||||
|
description: "Doesn't show the small guild icons in folders",
|
||||||
|
author: "botato",
|
||||||
|
patches: [{
|
||||||
|
find: "().expandedFolderIconWrapper",
|
||||||
|
replacement: [{
|
||||||
|
match: /\(\w\|\|\w\)(&&\(\w=\w\.createElement\(\w+\.animated)/,
|
||||||
|
replace: "true$1",
|
||||||
|
}]
|
||||||
|
}]
|
||||||
|
});
|
Loading…
Reference in a new issue