Fix Canary Patches

This commit is contained in:
thororen1234 2025-04-03 15:55:06 -04:00
parent 6c4a9d4cc8
commit 2a4c3c119b
No known key found for this signature in database
13 changed files with 16 additions and 16 deletions

View file

@ -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: ""
}
},

View file

@ -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
}
]

View file

@ -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])},"
}
},

View file

@ -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

View file

@ -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});`
}
},

View file

@ -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
}
],