|
|
@ -94,19 +94,19 @@ export default definePlugin({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
patches: [
|
|
|
|
patches: [
|
|
|
|
|
|
|
|
// above message box
|
|
|
|
{
|
|
|
|
{
|
|
|
|
find: ".showCopiableUsername",
|
|
|
|
find: ".lastEditedByContainer",
|
|
|
|
replacement: {
|
|
|
|
replacement: {
|
|
|
|
match: /\(0,\w\.jsx\)\(\w{2},{user:\w,setNote/,
|
|
|
|
match: /\(0,\i\.jsx\)\(\i\.\i,{user:\i,setNote/,
|
|
|
|
// paste my fancy custom button above the message field
|
|
|
|
|
|
|
|
replace: "$self.patchPopout(arguments[0]),$&",
|
|
|
|
replace: "$self.patchPopout(arguments[0]),$&",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// below username
|
|
|
|
{
|
|
|
|
{
|
|
|
|
find: ".USER_PROFILE_MODAL",
|
|
|
|
find: ".USER_PROFILE_MODAL",
|
|
|
|
replacement: {
|
|
|
|
replacement: {
|
|
|
|
match: /\(\)\.body.+?displayProfile:\i}\),/,
|
|
|
|
match: /\.body.+?displayProfile:\i}\),/,
|
|
|
|
// paste my fancy custom button below the username
|
|
|
|
|
|
|
|
replace: "$&$self.patchModal(arguments[0]),",
|
|
|
|
replace: "$&$self.patchModal(arguments[0]),",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|