BetterInvites: Fix Messy Patch
This commit is contained in:
parent
6758604d36
commit
70faa90ab0
2 changed files with 5 additions and 5 deletions
|
|
@ -48,12 +48,12 @@ export default definePlugin({
|
|||
find: ".guildNameContainer,onClick:",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?=children:\i\.name\}\).{0,100}\.guildNameContainer)/,
|
||||
replace: "onClick:$self.Lurkable(arguments[0].invite?.guild?.id,arguments[0].invite?.guild?.features),"
|
||||
match: /children:\i\.name\}\).{0,100}\.guildNameContainer/,
|
||||
replace: "onClick:$self.Lurkable(arguments[0].invite?.guild?.id,arguments[0].invite?.guild?.features),$&"
|
||||
},
|
||||
{
|
||||
match: /(\.nameContainer.{0,100}disableGuildNameClick:\i)/,
|
||||
replace: "$1,invite:arguments[0].invite"
|
||||
match: /\.nameContainer.{0,100}disableGuildNameClick:\i/,
|
||||
replace: "$&,invite:arguments[0].invite"
|
||||
},
|
||||
{
|
||||
match: /disableGuildNameClick:\i.{0,50}\}\),\i/,
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ export default definePlugin({
|
|||
find: ".full,children:",
|
||||
replacement: {
|
||||
// Tooltips for timestamp markdown (e.g. <t:1234567890>)
|
||||
match: /(\i).full(?=,children:)/,
|
||||
match: /(\i).full/,
|
||||
replace: "$self.renderTimestamp(new Date($1.timestamp*1000),'tooltip')"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue