Declutter: remove avatar decoration setting

This commit is contained in:
thororen1234 2026-03-03 18:42:42 -05:00
parent 7a546afa1f
commit 19dcaa0feb
No known key found for this signature in database

View file

@ -36,12 +36,6 @@ export const settings = definePluginSettings({
type: OptionType.COMPONENT,
component: () => SectionSeparator("User Profile"),
},
removeAvatarDecoration: {
type: OptionType.BOOLEAN,
description: "Remove avatar decorations.",
default: true,
restartNeeded: true,
},
removeNameplate: {
type: OptionType.BOOLEAN,
description: "Remove nameplates.",
@ -149,15 +143,6 @@ export default definePlugin({
authors: [EquicordDevs.Leon135, Devs.prism, Devs.Kyuuhachi],
settings,
patches: [
{
// Avatar decoration
find: "getAvatarDecorationURL:",
replacement: {
match: /(?<=function \i\((\i)\){)(?=.{0,150}let{avatarDecoration)/,
replace: "$&return null;"
},
predicate: () => settings.store.removeAvatarDecoration,
},
{
// Nameplate
find: "#{intl::AVATAR_MALLOW}",