bump to v1.14.13.2
This commit is contained in:
parent
9b3d39d055
commit
f207ce7342
3 changed files with 15 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "equicord",
|
||||
"private": "true",
|
||||
"version": "1.14.13.1",
|
||||
"version": "1.14.13.2",
|
||||
"description": "The other cutest Discord client mod",
|
||||
"homepage": "https://github.com/Equicord/Equicord#readme",
|
||||
"bugs": {
|
||||
|
|
@ -104,4 +104,4 @@
|
|||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ export default definePlugin({
|
|||
const currentUserColor = Number(h64(currentUserId) % 360n);
|
||||
const otherUserColor = Number(h64(userId) % 360n);
|
||||
const colorDiff = Math.min(Math.abs(currentUserColor - otherUserColor), 360 - Math.abs(currentUserColor - otherUserColor));
|
||||
if (colorDiff < 45) {
|
||||
if (colorDiff < 70) {
|
||||
const newColor = (otherUserColor + 180) % 360;
|
||||
return `hsl(${newColor}, 100%, ${settings.store.lightness}%)`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ const settings = definePluginSettings({
|
|||
description: "Remove requirement to hold shift for pinning a message.",
|
||||
default: true,
|
||||
},
|
||||
noQuickReacts: {
|
||||
default: true,
|
||||
restartNeeded: true,
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Hide quick reacts. By default, showing the full menu hides quick react buttons.",
|
||||
},
|
||||
});
|
||||
|
||||
export default definePlugin({
|
||||
|
|
@ -46,7 +52,12 @@ export default definePlugin({
|
|||
predicate: () => settings.store.noShiftPin,
|
||||
match: /onClick:.{10,30}(?=\},"pin")/,
|
||||
replace: "onClick:() => $self.toggleMessagePin(arguments[0]),"
|
||||
}
|
||||
},
|
||||
{
|
||||
predicate: () => !settings.store.noQuickReacts,
|
||||
match: /\i(\?null:\(0,\i\.jsxs\).{0,100}message:\i\}\)),\(0,\i\.jsxs?\)\(\i\.\i,\{\}\)/,
|
||||
replace: "false$1"
|
||||
},
|
||||
]
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue