mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-25 22:37:02 -04:00
parent
b075f7b6a4
commit
c8b5337d18
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(),"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue