mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 22:23:02 -04:00
Fix Canary Patches
This commit is contained in:
parent
6c4a9d4cc8
commit
2a4c3c119b
13 changed files with 16 additions and 16 deletions
|
@ -179,7 +179,7 @@ export default definePlugin({
|
||||||
find: ".GUILD_APPLICATION_PREMIUM_SUBSCRIPTION||",
|
find: ".GUILD_APPLICATION_PREMIUM_SUBSCRIPTION||",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /let \i;let\{repliedAuthor:/,
|
match: /let \i,\{repliedAuthor:/,
|
||||||
replace: "if(arguments[0] != null && arguments[0].referencedMessage.message != null) { if($self.shouldHideUser(arguments[0].referencedMessage.message.author.id, arguments[0].baseMessage.messageReference.channel_id)) { return $self.hiddenReplyComponent(); } }$&"
|
replace: "if(arguments[0] != null && arguments[0].referencedMessage.message != null) { if($self.shouldHideUser(arguments[0].referencedMessage.message.author.id, arguments[0].baseMessage.messageReference.channel_id)) { return $self.hiddenReplyComponent(); } }$&"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -83,7 +83,7 @@ export default definePlugin({
|
||||||
// this also affects name headers in chats outside of servers
|
// this also affects name headers in chats outside of servers
|
||||||
find: '="SYSTEM_TAG"',
|
find: '="SYSTEM_TAG"',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0,)/,
|
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0\}\)\(\),)/,
|
||||||
replace: "style:{color:$self.colorIfServer(arguments[0])},"
|
replace: "style:{color:$self.colorIfServer(arguments[0])},"
|
||||||
},
|
},
|
||||||
predicate: () => !Settings.plugins.IrcColors.enabled
|
predicate: () => !Settings.plugins.IrcColors.enabled
|
||||||
|
|
|
@ -254,7 +254,7 @@ export default definePlugin({
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "THREAD_STARTER_MESSAGE?null===",
|
find: "THREAD_STARTER_MESSAGE?null==",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /deleted:\i\.deleted, editHistory:\i\.editHistory,/,
|
match: /deleted:\i\.deleted, editHistory:\i\.editHistory,/,
|
||||||
replace: "deleted:$self.getDeleted(...arguments), editHistory:$self.getEdited(...arguments),"
|
replace: "deleted:$self.getDeleted(...arguments), editHistory:$self.getEdited(...arguments),"
|
||||||
|
|
|
@ -56,7 +56,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ".gifts)",
|
find: ".gifts)",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /,.{0,5}\(null===\(\w=\w\.stickers\)\|\|void 0.*?(\w)\.push\((\(0,\w\.jsx\))\((.+?),{disabled:\w,type:(\w)},"sticker"\)\)\)/,
|
match: /,.{0,5}\(null==\(\i=\i\.stickers\)\?void 0.*?(\i)\.push\((\(0,\w\.jsx\))\((.+?),{disabled:\i,type:(\i)},"sticker"\)\)\)/,
|
||||||
replace: (m, _, jsx, compo, type) => {
|
replace: (m, _, jsx, compo, type) => {
|
||||||
const c = "arguments[0].type";
|
const c = "arguments[0].type";
|
||||||
return `${m},${c}?.submit?.button&&${_}.push(${jsx}(${compo},{disabled:!${c}?.submit?.button,type:${type},stickersType:"stickers+"},"stickers+"))`;
|
return `${m},${c}?.submit?.button&&${_}.push(${jsx}(${compo},{disabled:!${c}?.submit?.button,type:${type},stickersType:"stickers+"},"stickers+"))`;
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: '"SearchStore",',
|
find: '"SearchStore",',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(\i)\.offset=null!==\((\i)=(\i)\.offset\)&&void 0!==(\i)\?(\i):0/i,
|
match: /(\i)\.offset=null!=\((\i)=(\i)\.offset\)\?(\i):0/i,
|
||||||
replace: (_, v, v1, query, v3, v4) => `$self.main(${query}), ${v}.offset = null !== (${v1} = ${query}.offset) && void 0 !== ${v3} ? ${v4} : 0`
|
replace: (_, v, v1, query, v3, v4) => `$self.main(${query}), ${v}.offset = null !== (${v1} = ${query}.offset) && void 0 !== ${v3} ? ${v4} : 0`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ".videoControls:",
|
find: /\.VIDEO\?\i\.videoControls:/,
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /children:\[this\.renderPlayIcon\(\),.{0,200}\.setDurationRef}\),/,
|
match: /children:\[this\.renderPlayIcon\(\),.{0,200}\.setDurationRef}\),/,
|
||||||
replace: "$&$self.SpeedButton(),"
|
replace: "$&$self.SpeedButton(),"
|
||||||
|
|
|
@ -148,14 +148,14 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "is not a valid locale.",
|
find: "is not a valid locale.",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\i\.error\(""\.concat\(\i," is not a valid locale."\)\);/,
|
match: /void \i\.error\(""\.concat\(\i," is not a valid locale."\)\)/,
|
||||||
replace: ""
|
replace: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: '"AppCrashedFatalReport: getLastCrash not supported."',
|
find: '"AppCrashedFatalReport: getLastCrash not supported."',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\);/,
|
match: /void console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\)/,
|
||||||
replace: ""
|
replace: ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default definePlugin({
|
||||||
replace: "$self.handleOnline()"
|
replace: "$self.handleOnline()"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(setInterval\(\i,\.25\*)\i\.\i/,
|
match: /(setInterval\(\i,30\*)\i\.\i/,
|
||||||
replace: "$1$self.getIntervalDelay()" // For web installs
|
replace: "$1$self.getIntervalDelay()" // For web installs
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -67,7 +67,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: '="SYSTEM_TAG"',
|
find: '="SYSTEM_TAG"',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0,)/,
|
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0\}\)\(\),)/,
|
||||||
replace: "style:{color:$self.calculateNameColorForMessageContext(arguments[0])},"
|
replace: "style:{color:$self.calculateNameColorForMessageContext(arguments[0])},"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -433,7 +433,7 @@ export default definePlugin({
|
||||||
|
|
||||||
{
|
{
|
||||||
// Updated message transformer(?)
|
// Updated message transformer(?)
|
||||||
find: "THREAD_STARTER_MESSAGE?null===",
|
find: "THREAD_STARTER_MESSAGE?null==",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
// Pass through editHistory & deleted & original attachments to the "edited message" transformer
|
// Pass through editHistory & deleted & original attachments to the "edited message" transformer
|
||||||
|
|
|
@ -134,7 +134,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ",acceptInvite(",
|
find: ",acceptInvite(",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /INVITE_ACCEPT_SUCCESS.+?,(\i)=null!==.+?;/,
|
match: /INVITE_ACCEPT_SUCCESS.+?,(\i)=null!=.+?;/,
|
||||||
replace: (m, guildId) => `${m}$self.applyDefaultSettings(${guildId});`
|
replace: (m, guildId) => `${m}$self.applyDefaultSettings(${guildId});`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,11 +28,11 @@ export default definePlugin({
|
||||||
find: ".nsfwAllowed=null",
|
find: ".nsfwAllowed=null",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /(?<=\.nsfwAllowed=)null!==.+?(?=[,;])/,
|
match: /(?<=\.nsfwAllowed=)null!=.+?(?=[,;])/,
|
||||||
replace: "true",
|
replace: "true",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=\.ageVerificationStatus=)null!==.+?(?=[,;])/,
|
match: /(?<=\.ageVerificationStatus=)null!=.+?(?=[,;])/,
|
||||||
replace: "3", // VERIFIED_ADULT
|
replace: "3", // VERIFIED_ADULT
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -25,7 +25,7 @@ import * as t from "./types/components";
|
||||||
|
|
||||||
const FormTitle = waitForComponent<t.FormTitle>("FormTitle", filters.componentByCode('["defaultMargin".concat', '="h5"'));
|
const FormTitle = waitForComponent<t.FormTitle>("FormTitle", filters.componentByCode('["defaultMargin".concat', '="h5"'));
|
||||||
const FormText = waitForComponent<t.FormText>("FormText", filters.componentByCode(".SELECTABLE),", ".DISABLED:"));
|
const FormText = waitForComponent<t.FormText>("FormText", filters.componentByCode(".SELECTABLE),", ".DISABLED:"));
|
||||||
const FormSection = waitForComponent<t.FormSection>("FormSection", filters.componentByCode(".titleId)&&"));
|
const FormSection = waitForComponent<t.FormSection>("FormSection", filters.componentByCode(".titleId)?"));
|
||||||
const FormDivider = waitForComponent<t.FormDivider>("FormDivider", filters.componentByCode(".divider,", ",style:", '"div"', /\.divider,\i\),style:/));
|
const FormDivider = waitForComponent<t.FormDivider>("FormDivider", filters.componentByCode(".divider,", ",style:", '"div"', /\.divider,\i\),style:/));
|
||||||
|
|
||||||
export const Forms = {
|
export const Forms = {
|
||||||
|
@ -74,7 +74,7 @@ export const ScrollerNone = LazyComponent(() => createScroller(scrollerClasses.n
|
||||||
export const ScrollerThin = LazyComponent(() => createScroller(scrollerClasses.thin, scrollerClasses.fade, scrollerClasses.customTheme));
|
export const ScrollerThin = LazyComponent(() => createScroller(scrollerClasses.thin, scrollerClasses.fade, scrollerClasses.customTheme));
|
||||||
export const ScrollerAuto = LazyComponent(() => createScroller(scrollerClasses.auto, scrollerClasses.fade, scrollerClasses.customTheme));
|
export const ScrollerAuto = LazyComponent(() => createScroller(scrollerClasses.auto, scrollerClasses.fade, scrollerClasses.customTheme));
|
||||||
|
|
||||||
const { FocusLock_ } = mapMangledModuleLazy("attachTo:null!==", {
|
const { FocusLock_ } = mapMangledModuleLazy("attachTo:null!=", {
|
||||||
FocusLock_: filters.componentByCode(".containerRef")
|
FocusLock_: filters.componentByCode(".containerRef")
|
||||||
}) as {
|
}) as {
|
||||||
FocusLock_: t.FocusLock;
|
FocusLock_: t.FocusLock;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue