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: devtools for visual refresh
Cynthia Foxwell
11 months ago
0cfe2f4a
e87a8083
+17
1 changed file
expand all
collapse all
unified
split
packages
core-extensions
src
experiments
index.ts
+17
packages/core-extensions/src/experiments/index.ts
···
25
25
`&&(((moonlight.getConfigOption("experiments","devtools")??false)?true:${isStaff})?(0,`
26
26
}
27
27
},
28
28
+
// staff help menu - visual refresh
29
29
+
{
30
30
+
find: '("AppTitleBar")',
31
31
+
replace: {
32
32
+
match: /{hasBugReporterAccess:(\i)}=\i\.\i\.useExperiment\({location:"HeaderBar"},{autoTrackExposure:!1}\);/,
33
33
+
replacement: (orig, isStaff) =>
34
34
+
`${orig}if(moonlight.getConfigOption("experiments","devtools")??false)${isStaff}=true;`
35
35
+
}
36
36
+
},
37
37
+
{
38
38
+
find: 'navId:"staff-help-popout",',
39
39
+
replace: {
40
40
+
match: /isDiscordDeveloper:(\i)}\),/,
41
41
+
replacement: (_, isStaff) =>
42
42
+
`isDiscordDeveloper:(moonlight.getConfigOption("experiments","devtools")??false)||${isStaff}}),`
43
43
+
}
44
44
+
},
28
45
29
46
// Enable further staff-locked options
30
47
{