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" + } + } + ] +});