Fixes For Canary
Some checks are pending
Sync to Codeberg / Sync Codeberg and Github (push) Waiting to run
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-02-27 22:54:21 -05:00
parent ae1d98c8cf
commit 5cd0b86c1b
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ export default definePlugin({
{ {
find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}", find: "#{intl::FORUM_POST_AUTHOR_A11Y_LABEL}",
replacement: { replacement: {
match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\(\i\.Fragment,{children:)\i(?=}\),)/, match: /(?<=\}=(\i),\{(user:\i,author:\i)\}=.{0,400}?\i:void 0\)\()\i/,
replace: "$self.wrapForumAuthor({...$1,$2},$&)" replace: "$self.wrapForumAuthor({...$1,$2},$&)"
} }
}, },

View file

@ -237,8 +237,8 @@ export default definePlugin({
{ {
find: "\"invite-button\"", find: "\"invite-button\"",
replacement: { replacement: {
match: /(\i\.Fragment,{children:)(\i\i)/, match: /\i&&(\i\i\.push).{0,50}"current-speaker"/,
replace: "$1[$self.renderQuestButton(),...$2]" replace: "$1($self.renderQuestButton()),$&"
} }
}, },
{ {

View file

@ -56,8 +56,8 @@ export default definePlugin({
{ {
find: '?"@":""', find: '?"@":""',
replacement: { replacement: {
match: /(?<=onContextMenu:\i,children:).*?\)}/, match: /(?<=children:)\(\i\?"@":""\)\+\i(?=,|\})/,
replace: "$self.renderUsername(arguments[0])}" replace: "$self.renderUsername(arguments[0])"
} }
}, },
], ],