Declutter: Remove Avatar Decoration From User Area

This commit is contained in:
thororen1234 2026-05-25 12:16:46 -04:00
parent dedd51faf2
commit 33db6700f1
No known key found for this signature in database
4 changed files with 9 additions and 4 deletions

View file

@ -58,6 +58,7 @@ export interface Alerts {
confirmColor?: string;
cancelText?: string;
confirmText?: string;
confirmVariant?: string;
secondaryConfirmText?: string;
onCancel?(): void;
onConfirm?(): void;

View file

@ -147,7 +147,6 @@ export default definePlugin({
title: "Declutter",
body: "Avatar decoration removal has been disabled to prevent conflicts with Decor plugin.",
confirmText: "OK",
// @ts-expect-error not typed
confirmVariant: "critical-primary"
});
}
@ -172,6 +171,14 @@ export default definePlugin({
},
predicate: () => settings.store.removeAvatarDecoration && !isPluginEnabled(decor.name),
},
{
find: ".DISPLAY_NAME_STYLES_COACHMARK)",
replacement: {
match: /((\i)=\i\?\.avatarDecoration,\i=)\(0,\i\.\i\)\(\2\)/,
replace: "$1null"
},
predicate: () => settings.store.removeAvatarDecoration && !isPluginEnabled(decor.name),
},
{
// Nameplate
find: ".MINI_PREVIEW,[",

View file

@ -135,7 +135,6 @@ export function LogsModal({ modalProps, initalQuery }: Props) {
title: "Clear Logs",
body: `Are you sure you want to clear ${messages.length} logs`,
confirmText: "Clear",
// @ts-expect-error not typed
confirmVariant: "critical-primary",
cancelText: "Cancel",
onConfirm: async () => {
@ -151,7 +150,6 @@ export function LogsModal({ modalProps, initalQuery }: Props) {
title: "Clear Logs",
body: "Are you sure you want to clear all the logs",
confirmText: "Clear",
// @ts-expect-error not typed
confirmVariant: "critical-primary",
cancelText: "Cancel",
onConfirm: async () => {

View file

@ -298,7 +298,6 @@ export const settings = definePluginSettings({
onClick={() => Alerts.show({
title: "Clear Logs",
body: "Are you sure you want to clear all logs?",
// @ts-expect-error not typed
confirmVariant: "critical-primary",
confirmText: "Clear",
cancelText: "Cancel",