fix bettergif* decor shc
This commit is contained in:
parent
662a2bdecd
commit
18fe0cf4b0
4 changed files with 18 additions and 8 deletions
|
|
@ -26,7 +26,7 @@ export default definePlugin({
|
|||
"Change GIF alt text from simply being 'GIF' to containing the gif tags / filename",
|
||||
patches: [
|
||||
{
|
||||
find: '"onCloseImage",',
|
||||
find: ".modalContext})};",
|
||||
replacement: {
|
||||
match: /(return.{0,10}\.jsx.{0,50}isWindowFocused)/,
|
||||
replace:
|
||||
|
|
|
|||
|
|
@ -13,11 +13,17 @@ export default definePlugin({
|
|||
authors: [Devs.Samwich],
|
||||
patches: [
|
||||
{
|
||||
find: '"state",{resultType:',
|
||||
replacement: [{
|
||||
match: /(?<="state",{resultType:)null/,
|
||||
replace: '"Favorites"'
|
||||
}]
|
||||
find: "renderHeaderContent(){",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<="state",{resultType:)null/,
|
||||
replace: '"Favorites"'
|
||||
},
|
||||
{
|
||||
match: /(?<=state={resultType:)null/,
|
||||
replace: '"Favorites"'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export default definePlugin({
|
|||
find: "80,onlyAnimateOnHoverOrFocus:!",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<==)\i=>{let{children.{20,200}isSelected:\i=!1\}=\i/,
|
||||
match: /(?<==)\i=>{let{children.{20,200}isSelected:\i=!1.{0,5}\}=\i/,
|
||||
replace: "$self.DecorationGridItem=$&",
|
||||
},
|
||||
{
|
||||
|
|
@ -106,6 +106,10 @@ export default definePlugin({
|
|||
{
|
||||
match: /(?<=userValue.{0,25}void 0:)((\i)\.avatarDecoration)/,
|
||||
replace: "$self.useUserDecorAvatarDecoration($2)??$1"
|
||||
},
|
||||
{
|
||||
match: /(?<=userValue:)((\i)(?:.{0,10})?\.avatarDecoration)/,
|
||||
replace: "$self.useUserDecorAvatarDecoration($2)??$1"
|
||||
}
|
||||
]
|
||||
})),
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Hide the new version of unreads box for hidden channels
|
||||
find: '"ChannelListUnreadsStore",',
|
||||
find: '"ChannelListUnreadsStore"',
|
||||
replacement: {
|
||||
match: /(?<=\.id\)\))(?=&&\(0,\i\.\i\)\((\i)\))/,
|
||||
replace: (_, channel) => `&&!$self.isHiddenChannel(${channel})`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue