Fix Broken Patches
This commit is contained in:
parent
a0004a5b49
commit
939f0de522
3 changed files with 3 additions and 12 deletions
|
|
@ -87,8 +87,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ".deleteRecentMention(",
|
||||
replacement: {
|
||||
match: /(?<=className:\i.\i,onJump:)(\i)(?=.{0,20}message:(\i))/,
|
||||
replace: "event => { if (event.ctrlKey) $self.open($2); else $1(event) }"
|
||||
match: /(?<=className:\i.\i,onJump:)(\i)=>(\i\(\i,\i\.id\))(?=.{0,40}message:(\i))/,
|
||||
replace: "$1 => { if ($1?.ctrlKey) $self.open($3); else $2 }"
|
||||
}
|
||||
},
|
||||
// ctrl click to open in new tab in search results
|
||||
|
|
@ -99,14 +99,6 @@ export default definePlugin({
|
|||
replace: "$&if ($1.ctrlKey) return $self.open($2);"
|
||||
}
|
||||
},
|
||||
// prevent issues with the pins/inbox popouts being too tall
|
||||
{
|
||||
find: "#{intl::JUMP}),onClick:",
|
||||
replacement: {
|
||||
match: /\i&&\((\i).maxHeight.{0,5}\)/,
|
||||
replace: "$&;$1.maxHeight-=$self.containerHeight"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
settings,
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ export default definePlugin({
|
|||
find: "#{intl::RECENT_MENTIONS_EMPTY_STATE_TIP}",
|
||||
replacement: [
|
||||
{
|
||||
match: /function (\i)\(\i\){let{message:\i,gotoMessage/,
|
||||
match: /function (\i)\(\i\){let{message:\i,onJump/,
|
||||
replace: "$self.renderMsg = $1; $&"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ export default definePlugin({
|
|||
]
|
||||
},
|
||||
...[
|
||||
"#{intl::GUILD_COMMUNICATION_DISABLED_ICON_TOOLTIP_BODY}", // Messages
|
||||
"#{intl::COLLECTIBLES_NAMEPLATE_PREVIEW_A11Y}", // Nameplate preview
|
||||
"#{intl::COLLECTIBLES_PROFILE_PREVIEW_A11Y}", // Avatar preview
|
||||
].map(find => ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue