From 086c31c890ab264d5ad221d0eb8ce40e8c0ee396 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 29 Jun 2024 17:43:25 +0200 Subject: [PATCH] new plugin ShowAllRoles: show all roles in simplified profiles (#2624) Co-authored-by: vee --- src/plugins/showAllRoles/README.md | 6 ++++++ src/plugins/showAllRoles/index.ts | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/plugins/showAllRoles/README.md create mode 100644 src/plugins/showAllRoles/index.ts diff --git a/src/plugins/showAllRoles/README.md b/src/plugins/showAllRoles/README.md new file mode 100644 index 00000000..d5d99c79 --- /dev/null +++ b/src/plugins/showAllRoles/README.md @@ -0,0 +1,6 @@ +# ShowAllRoles + +Display all roles on the new profiles instead of limiting them to the default two rows. + +![image](https://github.com/Vendicated/Vencord/assets/71079641/3f021f03-c6f9-4fe5-83ac-a1891b5e4b37) + diff --git a/src/plugins/showAllRoles/index.ts b/src/plugins/showAllRoles/index.ts new file mode 100644 index 00000000..02d9f964 --- /dev/null +++ b/src/plugins/showAllRoles/index.ts @@ -0,0 +1,23 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { Devs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "ShowAllRoles", + description: "Show all roles in new profiles.", + authors: [Devs.Luna], + patches: [ + { + find: ".Messages.VIEW_ALL_ROLES", + replacement: { + match: /return null!=\i(?=\?\i\.slice)/, + replace: "return false" + } + } + ] +});