Fix IgnoreActivities
This commit is contained in:
parent
a41abfef31
commit
23963f40c2
|
@ -90,30 +90,31 @@ export default definePlugin({
|
||||||
find: '.displayName="LocalActivityStore"',
|
find: '.displayName="LocalActivityStore"',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /LISTENING.+?\)\);(?<=(\i)\.push.+?)/,
|
match: /LISTENING.+?}\),(?<=(\i)\.push.+?)/,
|
||||||
replace: (m, activities) => `${m}${activities}=${activities}.filter($self.isActivityNotIgnored);`
|
replace: (m, activities) => `${m}${activities}=${activities}.filter($self.isActivityNotIgnored),`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".Messages.SETTINGS_GAMES_TOGGLE_OVERLAY",
|
find: ".Messages.SETTINGS_GAMES_TOGGLE_OVERLAY",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\(\)\.removeGame.+?null(?<=(\i)\?\i=\i\.\i\.Messages\.SETTINGS_GAMES_NOW_PLAYING_STATE.+?=(\i)\.overlay.+?)/,
|
match: /\.Messages\.SETTINGS_GAMES_TOGGLE_OVERLAY.+?}\(\),(?<={overlay:\i,.+?=(\i),.+?)(?=!(\i))/,
|
||||||
replace: (m, nowPlaying, props) => `${m},$self.renderToggleGameActivityButton(${props},${nowPlaying})`
|
replace: (m, props, nowPlaying) => `${m}$self.renderToggleGameActivityButton(${props},${nowPlaying}),`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: ".Messages.EMBEDDED_ACTIVITIES_DEVELOPER_SHELF_SUBTITLE",
|
find: ".activityTitleText,variant",
|
||||||
replacement: [
|
replacement: {
|
||||||
{
|
match: /(?<=\i\.activityTitleText.+?children:(\i)\.name.*?}\),)/,
|
||||||
match: /(?<=\(\)\.activityTitleText.+?children:(\i)\.name.*?}\),)/,
|
|
||||||
replace: (_, props) => `$self.renderToggleActivityButton(${props}),`
|
replace: (_, props) => `$self.renderToggleActivityButton(${props}),`
|
||||||
},
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=\(\)\.activityCardDetails.+?children:(\i\.application)\.name.*?}\),)/,
|
find: ".activityCardDetails,children",
|
||||||
|
replacement: {
|
||||||
|
match: /(?<=\i\.activityCardDetails.+?children:(\i\.application)\.name.*?}\),)/,
|
||||||
replace: (_, props) => `$self.renderToggleActivityButton(${props}),`
|
replace: (_, props) => `$self.renderToggleActivityButton(${props}),`
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue