IgnoredActivities: Fix not ignoring in tracked activities (used in Content Feed)

This commit is contained in:
Nuckyz 2024-06-22 20:22:43 -03:00
parent 87d3e30ebf
commit 62afad3e65
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -222,6 +222,13 @@ export default definePlugin({
} }
] ]
}, },
{
find: '="ActivityTrackingStore",',
replacement: {
match: /getVisibleRunningGames\(\).+?;(?=for)(?<=(\i)=\i\.\i\.getVisibleRunningGames.+?)/,
replace: (m, runningGames) => `${m}${runningGames}=${runningGames}.filter(({id,name})=>$self.isActivityNotIgnored({type:0,application_id:id,name}));`
}
},
{ {
find: ".Messages.SETTINGS_GAMES_TOGGLE_OVERLAY", find: ".Messages.SETTINGS_GAMES_TOGGLE_OVERLAY",
replacement: { replacement: {