bump to v1.14.13.2

This commit is contained in:
thororen1234 2026-06-07 13:49:36 -04:00
parent 9b3d39d055
commit f207ce7342
No known key found for this signature in database
3 changed files with 15 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "equicord", "name": "equicord",
"private": "true", "private": "true",
"version": "1.14.13.1", "version": "1.14.13.2",
"description": "The other cutest Discord client mod", "description": "The other cutest Discord client mod",
"homepage": "https://github.com/Equicord/Equicord#readme", "homepage": "https://github.com/Equicord/Equicord#readme",
"bugs": { "bugs": {

View file

@ -133,7 +133,7 @@ export default definePlugin({
const currentUserColor = Number(h64(currentUserId) % 360n); const currentUserColor = Number(h64(currentUserId) % 360n);
const otherUserColor = Number(h64(userId) % 360n); const otherUserColor = Number(h64(userId) % 360n);
const colorDiff = Math.min(Math.abs(currentUserColor - otherUserColor), 360 - Math.abs(currentUserColor - otherUserColor)); const colorDiff = Math.min(Math.abs(currentUserColor - otherUserColor), 360 - Math.abs(currentUserColor - otherUserColor));
if (colorDiff < 45) { if (colorDiff < 70) {
const newColor = (otherUserColor + 180) % 360; const newColor = (otherUserColor + 180) % 360;
return `hsl(${newColor}, 100%, ${settings.store.lightness}%)`; return `hsl(${newColor}, 100%, ${settings.store.lightness}%)`;
} }

View file

@ -20,6 +20,12 @@ const settings = definePluginSettings({
description: "Remove requirement to hold shift for pinning a message.", description: "Remove requirement to hold shift for pinning a message.",
default: true, 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({ export default definePlugin({
@ -46,7 +52,12 @@ export default definePlugin({
predicate: () => settings.store.noShiftPin, predicate: () => settings.store.noShiftPin,
match: /onClick:.{10,30}(?=\},"pin")/, match: /onClick:.{10,30}(?=\},"pin")/,
replace: "onClick:() => $self.toggleMessagePin(arguments[0])," 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"
},
] ]
}, },
], ],