mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -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||",
|
||||
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(); } }$&"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -83,7 +83,7 @@ export default definePlugin({
|
|||
// this also affects name headers in chats outside of servers
|
||||
find: '="SYSTEM_TAG"',
|
||||
replacement: {
|
||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0,)/,
|
||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0\}\)\(\),)/,
|
||||
replace: "style:{color:$self.colorIfServer(arguments[0])},"
|
||||
},
|
||||
predicate: () => !Settings.plugins.IrcColors.enabled
|
||||
|
|
|
@ -254,7 +254,7 @@ export default definePlugin({
|
|||
]
|
||||
},
|
||||
{
|
||||
find: "THREAD_STARTER_MESSAGE?null===",
|
||||
find: "THREAD_STARTER_MESSAGE?null==",
|
||||
replacement: {
|
||||
match: /deleted:\i\.deleted, editHistory:\i\.editHistory,/,
|
||||
replace: "deleted:$self.getDeleted(...arguments), editHistory:$self.getEdited(...arguments),"
|
||||
|
|
|
@ -56,7 +56,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".gifts)",
|
||||
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) => {
|
||||
const c = "arguments[0].type";
|
||||
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",',
|
||||
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`
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: ".videoControls:",
|
||||
find: /\.VIDEO\?\i\.videoControls:/,
|
||||
replacement: {
|
||||
match: /children:\[this\.renderPlayIcon\(\),.{0,200}\.setDurationRef}\),/,
|
||||
replace: "$&$self.SpeedButton(),"
|
||||
|
|
|
@ -148,14 +148,14 @@ export default definePlugin({
|
|||
{
|
||||
find: "is not a valid locale.",
|
||||
replacement: {
|
||||
match: /\i\.error\(""\.concat\(\i," is not a valid locale."\)\);/,
|
||||
match: /void \i\.error\(""\.concat\(\i," is not a valid locale."\)\)/,
|
||||
replace: ""
|
||||
}
|
||||
},
|
||||
{
|
||||
find: '"AppCrashedFatalReport: getLastCrash not supported."',
|
||||
replacement: {
|
||||
match: /console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\);/,
|
||||
match: /void console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\)/,
|
||||
replace: ""
|
||||
}
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@ export default definePlugin({
|
|||
replace: "$self.handleOnline()"
|
||||
},
|
||||
{
|
||||
match: /(setInterval\(\i,\.25\*)\i\.\i/,
|
||||
match: /(setInterval\(\i,30\*)\i\.\i/,
|
||||
replace: "$1$self.getIntervalDelay()" // For web installs
|
||||
}
|
||||
]
|
||||
|
|
|
@ -67,7 +67,7 @@ export default definePlugin({
|
|||
{
|
||||
find: '="SYSTEM_TAG"',
|
||||
replacement: {
|
||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0,)/,
|
||||
match: /(?<=\i.gradientClassName]\),style:.{0,80}:void 0\}\)\(\),)/,
|
||||
replace: "style:{color:$self.calculateNameColorForMessageContext(arguments[0])},"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -433,7 +433,7 @@ export default definePlugin({
|
|||
|
||||
{
|
||||
// Updated message transformer(?)
|
||||
find: "THREAD_STARTER_MESSAGE?null===",
|
||||
find: "THREAD_STARTER_MESSAGE?null==",
|
||||
replacement: [
|
||||
{
|
||||
// Pass through editHistory & deleted & original attachments to the "edited message" transformer
|
||||
|
|
|
@ -134,7 +134,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ",acceptInvite(",
|
||||
replacement: {
|
||||
match: /INVITE_ACCEPT_SUCCESS.+?,(\i)=null!==.+?;/,
|
||||
match: /INVITE_ACCEPT_SUCCESS.+?,(\i)=null!=.+?;/,
|
||||
replace: (m, guildId) => `${m}$self.applyDefaultSettings(${guildId});`
|
||||
}
|
||||
},
|
||||
|
|
|
@ -28,11 +28,11 @@ export default definePlugin({
|
|||
find: ".nsfwAllowed=null",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=\.nsfwAllowed=)null!==.+?(?=[,;])/,
|
||||
match: /(?<=\.nsfwAllowed=)null!=.+?(?=[,;])/,
|
||||
replace: "true",
|
||||
},
|
||||
{
|
||||
match: /(?<=\.ageVerificationStatus=)null!==.+?(?=[,;])/,
|
||||
match: /(?<=\.ageVerificationStatus=)null!=.+?(?=[,;])/,
|
||||
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 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:/));
|
||||
|
||||
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 ScrollerAuto = LazyComponent(() => createScroller(scrollerClasses.auto, scrollerClasses.fade, scrollerClasses.customTheme));
|
||||
|
||||
const { FocusLock_ } = mapMangledModuleLazy("attachTo:null!==", {
|
||||
const { FocusLock_ } = mapMangledModuleLazy("attachTo:null!=", {
|
||||
FocusLock_: filters.componentByCode(".containerRef")
|
||||
}) as {
|
||||
FocusLock_: t.FocusLock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue