mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 10:26:21 +00:00
24 lines
582 B
TypeScript
24 lines
582 B
TypeScript
|
/*
|
||
|
* 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"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
});
|