Fix Patches
This commit is contained in:
parent
23d1de8ec7
commit
47a2ae3e6f
3 changed files with 5 additions and 6 deletions
|
|
@ -1288,8 +1288,8 @@ export default definePlugin({
|
|||
// Allows in-progress Quests to still show.
|
||||
find: "QUESTS_BAR,questId",
|
||||
replacement: {
|
||||
match: /return null==(\i)\?null:\(/,
|
||||
replace: "return !$self.shouldHideQuestPopup($1)&&("
|
||||
match: /(?<=quest:(\i)\}\);)return/,
|
||||
replace: "return !$self.shouldHideQuestPopup($1)&&"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -174,9 +174,8 @@ export default definePlugin({
|
|||
find: '["strong","em","u","text","inlineCode","s","spoiler"]',
|
||||
replacement: [
|
||||
{
|
||||
match: /(?=return\{hasSpoilerEmbeds:\i,content:(\i))/,
|
||||
replace: (_: any, content: string) =>
|
||||
`${content}=$self.patchToneIndicators(${content});`,
|
||||
match: /(?=return\{hasSpoilerEmbeds:\i,.{0,15}content:(\i))/,
|
||||
replace: "$1=$self.patchToneIndicators($1);",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ export default definePlugin({
|
|||
{
|
||||
// Patch the rendered message content to add fake nitro emojis or remove sticker links
|
||||
predicate: () => settings.store.transformEmojis || settings.store.transformStickers,
|
||||
match: /(?=return{hasSpoilerEmbeds:\i,content:(\i))/,
|
||||
match: /(?=return\{hasSpoilerEmbeds:\i,.{0,15}content:(\i))/,
|
||||
replace: (_, content) => `${content}=$self.patchFakeNitroEmojisOrRemoveStickersLinks(${content},arguments[2]?.formatInline);`
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue