mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 08:46:25 +00:00
Merge branch 'dev' into NeverPausePreviews
This commit is contained in:
commit
eb94529be7
2 changed files with 17 additions and 6 deletions
|
@ -93,17 +93,13 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ".PANEL]:14",
|
find: ".PANEL]:14",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\i=\(0,\i\.default\)\(\i\);)return 0===\i.length/,
|
match: /(?<=(\i)=\(0,\i\.default\)\(\i\);)return 0===\i.length\?/,
|
||||||
replace: "$& && $self.getBadges(arguments[0]?.displayProfile).length===0"
|
replace: "$1.unshift(...$self.getBadges(arguments[0].displayProfile));$&"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".description,delay:",
|
find: ".description,delay:",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
|
||||||
match: /...(\i)\}=\(0,\i\.useUserProfileAnalyticsContext\)\(\);/,
|
|
||||||
replace: "$&arguments[0].badges?.unshift(...$self.getBadges($1));"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
// alt: "", aria-hidden: false, src: originalSrc
|
// alt: "", aria-hidden: false, src: originalSrc
|
||||||
match: /alt:" ","aria-hidden":!0,src:(?=.{0,20}(\i)\.icon)/,
|
match: /alt:" ","aria-hidden":!0,src:(?=.{0,20}(\i)\.icon)/,
|
||||||
|
|
|
@ -40,9 +40,16 @@ const settings = definePluginSettings({
|
||||||
default: true,
|
default: true,
|
||||||
description: "Show role colors in the voice chat user list",
|
description: "Show role colors in the voice chat user list",
|
||||||
restartNeeded: true
|
restartNeeded: true
|
||||||
|
},
|
||||||
|
reactorsList: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
default: true,
|
||||||
|
description: "Show role colors in the reactors list",
|
||||||
|
restartNeeded: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "RoleColorEverywhere",
|
name: "RoleColorEverywhere",
|
||||||
authors: [Devs.KingFish, Devs.lewisakura, Devs.AutumnVN],
|
authors: [Devs.KingFish, Devs.lewisakura, Devs.AutumnVN],
|
||||||
|
@ -99,6 +106,14 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
predicate: () => settings.store.voiceUsers,
|
predicate: () => settings.store.voiceUsers,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
find: ".reactorDefault",
|
||||||
|
replacement: {
|
||||||
|
match: /\.openUserContextMenu\)\((\i),(\i),\i\).{0,250}tag:"strong"/,
|
||||||
|
replace: "$&,style:{color:$self.getColor($2?.id,$1)}"
|
||||||
|
},
|
||||||
|
predicate: () => settings.store.reactorsList,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
settings,
|
settings,
|
||||||
|
|
Loading…
Reference in a new issue