fix(declutter): include avatar decoration removal on dms chat (#1061)
* fix(declutter): include avatar decoration removal on dms list * Update regex for avatar decoration replacement --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
d8bbdc8674
commit
a7aa4d7f10
1 changed files with 9 additions and 0 deletions
|
|
@ -176,6 +176,15 @@ export default definePlugin({
|
|||
},
|
||||
predicate: () => settings.store.removeAvatarDecoration && !isPluginEnabled(decor.name),
|
||||
},
|
||||
{
|
||||
// Avatar decoration on dms list
|
||||
find: "showCommunicationDisabledStyles",
|
||||
replacement: {
|
||||
match: /null==\i\|\|\i\?null:\(0,\i\.jsxs?\)\("img",\{className:\i\.\i,src:\i,alt:" ","aria-hidden":!0\}\)/,
|
||||
replace: "null"
|
||||
},
|
||||
predicate: () => settings.store.removeAvatarDecoration && !isPluginEnabled(decor.name),
|
||||
},
|
||||
{
|
||||
// Nameplate
|
||||
find: ".MINI_PREVIEW,[",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue