Fix Patches
Some checks failed
Release / Build Equicord (push) Has been cancelled
Test / Test (push) Has been cancelled

This commit is contained in:
thororen1234 2025-06-24 00:51:52 -04:00
parent c81aa8aada
commit 82f1b9a0f2
No known key found for this signature in database
7 changed files with 8 additions and 8 deletions

View file

@ -48,8 +48,8 @@ export default definePlugin({
{
find: ".COLLECTIBLES_SHOP_FULLSCREEN))",
replacement: {
match: /(\?void 0:(\i)\.channelId.{0,500}return)((.{0,15})"div",{.*?\])(\}\)\}\})/,
replace: "$1$4$self.render,{currentChannel:$2,children:$3})$5"
match: /(?<=\?void 0:(\i)\.channelId.{0,500}return)((.{0,15})"div",{.*?\])(?=\}\)\}\)\}\)\})/,
replace: "$3$self.render,{currentChannel:$1,children:$2})"
}
},
// intercept channel navigation to switch/create tabs

View file

@ -43,7 +43,7 @@ export default definePlugin({
}
},
{
find: "M11 9H4C2.89543 9 2 8.10457 2 7V1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1V7C0 9.20914 1.79086 11 4 11H11C11.5523 11 12 10.5523 12 10C12 9.44771 11.5523 9 11 9Z",
find: "spineWithGuildIcon]:",
replacement: {
match: /mentionsCount:\i.+?null(?<=channel:(\i).+?)/,
replace: "$&,$self.TrashIcon($1)"

View file

@ -32,7 +32,7 @@ export default definePlugin({
patches: [
{
find: "ChannelStickerPickerButton",
find: ".stickerButton)},",
replacement: [{
match: /(children:\(0,\i\.jsx\)\()(.{0,10})({innerClassName.{10,30}\.stickerButton)/,
replace: "$1arguments[0]?.stickersType?$self.stickerButton:$2$3"

View file

@ -75,7 +75,7 @@ export default definePlugin({
// Threads
{
// This is the thread "spine" that shows in the left
find: "M11 9H4C2.89543 9 2 8.10457 2 7V1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1V7C0 9.20914 1.79086 11 4 11H11C11.5523 11 12 10.5523 12 10C12 9.44771 11.5523 9 11 9Z",
find: "spineWithGuildIcon]:",
replacement: [
{
match: /mentionsCount:\i.{0,50}?null/,

View file

@ -53,7 +53,7 @@ export default definePlugin({
patches: [{
find: "renderConnectionStatus(){",
replacement: {
match: /(renderConnectionStatus\(\){.+\.channel,children:)(.+?}\):\i)(?=}\))/,
match: /(renderConnectionStatus\(\){.+\.channel,children:)(.+?}\))(?=}\))/,
replace: "$1[$2,$self.renderTimer(this.props.channel.id)]"
}
}],

View file

@ -396,7 +396,7 @@ export default definePlugin({
},
// Separate patch for allowing using custom app icons
{
find: "?24:30,",
find: "getCurrentDesktopIcon(),",
replacement: {
match: /\i\.\i\.isPremium\(\i\.\i\.getCurrentUser\(\)\)/,
replace: "true"

View file

@ -178,7 +178,7 @@ export default definePlugin({
// Theads
{
// This is the thread "spine" that shows in the left
find: "M11 9H4C2.89543 9 2 8.10457 2 7V1C2 0.447715 1.55228 0 1 0C0.447715 0 0 0.447715 0 1V7C0 9.20914 1.79086 11 4 11H11C11.5523 11 12 10.5523 12 10C12 9.44771 11.5523 9 11 9Z",
find: "spineWithGuildIcon]:",
replacement: {
match: /mentionsCount:\i.+?null(?<=channel:(\i).+?)/,
replace: "$&,$self.TypingIndicator($1.id,$1.getGuildId())"