Fix some patches
This commit is contained in:
parent
b7ca60cf74
commit
e16946bde2
4 changed files with 4 additions and 4 deletions
|
|
@ -122,7 +122,7 @@ export default definePlugin({
|
|||
find: '("UserProfileModalV2EditingPanel")',
|
||||
replacement: [
|
||||
{
|
||||
match: /"inline"===.{0,100}#{intl::Zenogr::raw}\)/,
|
||||
match: /"inline"===.{0,100}bannerErrorMessage:\i\}\)/,
|
||||
replace: "$self.ExperimentDecorSection(),$&"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
match: /\(0,\i\.jsxs?\)\(\i,\{heading:.{0,40}#{intl::USER_SETTINGS_PROFILE_EFFECT}/,
|
||||
replace: "$self.addCopy3y3Button(),$&"
|
||||
replace: " $self.addCopy3y3Button(),$&"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
predicate: () => !settings.store.noQuickReacts,
|
||||
match: /\i(\?null:\(0,\i\.jsxs\).{0,100}message:\i\}\)),\(0,\i\.jsxs?\)\(\i\.\i,\{\}\)/,
|
||||
match: /\i(\?null:\(0,\i\.jsxs\).{0,100}message:\i\}\)),\(0,\i\.jsxs?\)\(\i,\{\}\)/,
|
||||
replace: "false$1"
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "return{avatarProps:{",
|
||||
replacement: {
|
||||
match: /(?<=avatarProps:(\i),eventHandlers:(\i).{0,50}?)return null==/,
|
||||
match: /(?<=avatarProps:(\i),eventHandlers:(\i).{0,60}?)return null==/,
|
||||
replace: 'Object.assign($2,{style:{cursor:"pointer"},onClick:()=>$self.openAvatar($1.src)});$&',
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue