tangled
alpha
login
or
join now
notnite.com
/
moonlight
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
experiments: fix staff settings patch
Cynthia Foxwell
11 months ago
9f943634
a4d4f09b
+4
-4
1 changed file
expand all
collapse all
unified
split
packages
core-extensions
src
experiments
index.ts
+4
-4
packages/core-extensions/src/experiments/index.ts
···
20
20
{
21
21
find: ".HEADER_BAR)",
22
22
replace: {
23
23
-
match: /&&\((.)\?\(0,/,
23
23
+
match: /&&\((\i)\?\(0,/,
24
24
replacement: (_, isStaff) =>
25
25
`&&(((moonlight.getConfigOption("experiments","devtools")??false)?true:${isStaff})?(0,`
26
26
}
···
47
47
{
48
48
find: "shouldShowLurkerModeUpsellPopout:",
49
49
replace: {
50
50
-
match: /\.useReducedMotion,isStaff:(.),/,
51
51
-
replacement: (_, isStaff) =>
52
52
-
`.useReducedMotion,isStaff:(moonlight.getConfigOption("experiments","staffSettings")??false)?true:${isStaff},`
50
50
+
match: /\.useReducedMotion,isStaff:(\i)(,|})/,
51
51
+
replacement: (_, isStaff, trail) =>
52
52
+
`.useReducedMotion,isStaff:(moonlight.getConfigOption("experiments","staffSettings")??false)?true:${isStaff}${trail}`
53
53
}
54
54
}
55
55
];