|
|
@ -26,10 +26,12 @@ export default definePlugin({
|
|
|
|
description: "Adds Startup Timings to the Settings menu",
|
|
|
|
description: "Adds Startup Timings to the Settings menu",
|
|
|
|
authors: [Devs.Megu],
|
|
|
|
authors: [Devs.Megu],
|
|
|
|
patches: [{
|
|
|
|
patches: [{
|
|
|
|
find: "UserSettingsSections.PAYMENT_FLOW_MODAL_TEST_PAGE,",
|
|
|
|
find: "Messages.ACTIVITY_SETTINGS",
|
|
|
|
replacement: {
|
|
|
|
replacement: {
|
|
|
|
match: /{section:\i\.UserSettingsSections\.PAYMENT_FLOW_MODAL_TEST_PAGE/,
|
|
|
|
match: /(?<=}\)([,;])(\i\.settings)\.forEach.+?(\i)\.push.+}\))/,
|
|
|
|
replace: '{section:"StartupTimings",label:"Startup Timings",element:$self.StartupTimingPage},$&'
|
|
|
|
replace: (_, commaOrSemi, settings, elements) => "" +
|
|
|
|
|
|
|
|
`${commaOrSemi}${settings}?.[0]==="CHANGELOG"` +
|
|
|
|
|
|
|
|
`&&${elements}.push({section:"StartupTimings",label:"Startup Timings",element:$self.StartupTimingPage})`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
StartupTimingPage
|
|
|
|
StartupTimingPage
|
|
|
|