Fix more patches
This commit is contained in:
parent
74c38146d5
commit
762684a138
6 changed files with 9 additions and 9 deletions
|
@ -26,7 +26,7 @@ export default definePlugin({
|
||||||
"Change GIF alt text from simply being 'GIF' to containing the gif tags / filename",
|
"Change GIF alt text from simply being 'GIF' to containing the gif tags / filename",
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "onCloseImage=",
|
find: '"onCloseImage",',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(return.{0,10}\.jsx.{0,50}isWindowFocused)/,
|
match: /(return.{0,10}\.jsx.{0,50}isWindowFocused)/,
|
||||||
replace:
|
replace:
|
||||||
|
|
|
@ -61,8 +61,8 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// Remove NEW label from decor avatar decorations
|
// Remove NEW label from decor avatar decorations
|
||||||
{
|
{
|
||||||
match: /(?<=\.Section\.PREMIUM_PURCHASE&&\i;if\()(?<=avatarDecoration:(\i).+?)/,
|
match: /(?<=\.Section\.PREMIUM_PURCHASE&&\i)(?<=avatarDecoration:(\i).+?)/,
|
||||||
replace: "$1.skuId===$self.SKU_ID||"
|
replace: "||$1.skuId===$self.SKU_ID"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -29,10 +29,10 @@ export default definePlugin({
|
||||||
authors: [Devs.Ven],
|
authors: [Devs.Ven],
|
||||||
|
|
||||||
patches: [{
|
patches: [{
|
||||||
find: ".handleSelectGIF=",
|
find: '"handleSelectGIF",',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.handleSelectGIF=(\i)=>\{/,
|
match: /"handleSelectGIF",(\i)=>\{/,
|
||||||
replace: ".handleSelectGIF=$1=>{if (!this.props.className) return $self.handleSelect($1);"
|
replace: '"handleSelectGIF",$1=>{if (!this.props.className) return $self.handleSelect($1);'
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ export default definePlugin({
|
||||||
find: '="LocalActivityStore",',
|
find: '="LocalActivityStore",',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /HANG_STATUS.+?(?=!\i\(\i,\i\)&&)(?<=(\i)\.push.+?)/,
|
match: /HANG_STATUS.+?(?=!\i\(\)\(\i,\i\)&&)(?<=(\i)\.push.+?)/,
|
||||||
replace: (m, activities) => `${m}${activities}=${activities}.filter($self.isActivityNotIgnored);`
|
replace: (m, activities) => `${m}${activities}=${activities}.filter($self.isActivityNotIgnored);`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
...[
|
...[
|
||||||
'="MessageStore",',
|
'="MessageStore",',
|
||||||
'="ReadStateStore",'
|
'"displayName","ReadStateStore")'
|
||||||
].map(find => ({
|
].map(find => ({
|
||||||
find,
|
find,
|
||||||
predicate: () => Settings.plugins.NoBlockedMessages.ignoreBlockedMessages === true,
|
predicate: () => Settings.plugins.NoBlockedMessages.ignoreBlockedMessages === true,
|
||||||
|
|
|
@ -59,7 +59,7 @@ export default definePlugin({
|
||||||
find: "GuildHomeFeedbackExperiment.definition.id",
|
find: "GuildHomeFeedbackExperiment.definition.id",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /return{showFeedback:\i,setOnDismissedFeedback:(\i)}/,
|
match: /return{showFeedback:.+?,setOnDismissedFeedback:(\i)}/,
|
||||||
replace: "return{showFeedback:false,setOnDismissedFeedback:$1}"
|
replace: "return{showFeedback:false,setOnDismissedFeedback:$1}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue