this repo has no description
1import { Patch } from "@moonlight-mod/types";
2
3export const patches: Patch[] = [
4 {
5 find: "isStaffPersonal:",
6 replace: {
7 match: /&&null!=this\.personalConnectionId/,
8 replacement: "||!0"
9 }
10 },
11 {
12 find: '"scientist:triggered"', // Scientist? Triggered.
13 replace: {
14 match: /(?<=personal_connection_id\|\|)!1/,
15 replacement: "!0"
16 }
17 },
18
19 // Enable staff help menu
20 {
21 find: ".HEADER_BAR)",
22 replace: {
23 match: /&&\((.)\?\(0,/,
24 replacement: (_, isStaff) =>
25 `&&(((moonlight.getConfigOption("experiments","devtools")??false)?true:${isStaff})?(0,`
26 }
27 },
28
29 // Enable further staff-locked options
30 {
31 find: "shouldShowLurkerModeUpsellPopout:",
32 replace: {
33 match: /\.useReducedMotion,isStaff:(.),/,
34 replacement: (_, isStaff) =>
35 `.useReducedMotion,isStaff:(moonlight.getConfigOption("experiments","staffSettings")??false)?true:${isStaff},`
36 }
37 }
38];