this repo has no description

Merge pull request #35 from redstonekasi/experiments-good

the good experiments patches:tm:

Changed files
+6 -34
packages
core-extensions
src
experiments
+6 -34
packages/core-extensions/src/experiments/index.ts
···
export const patches: Patch[] = [
{
-
find: '.displayName="ExperimentStore"',
-
replace: {
-
match: "window.GLOBAL_ENV.RELEASE_CHANNEL",
-
replacement: '"staging"'
-
}
-
},
-
{
-
find: '.displayName="DeveloperExperimentStore"',
-
replace: [
-
{
-
match: /CONNECTION_OPEN:.,OVERLAY_INITIALIZE:.,CURRENT_USER_UPDATE:./,
-
replacement: ""
-
},
-
{
-
match: '"production"',
-
replacement: '"development"'
-
},
-
{
-
match: /get:\(\)=>./,
-
replacement: "get:()=>true"
-
}
-
]
-
},
-
-
{
-
find: ".HEADER_BAR)",
+
find: "isStaffEnv:",
replace: {
-
match:
-
/,(.)\?(\(0,.\.jsx\)\(.{1,3}\.default,{}\)):(\(0,.\.jsx\)\(.{1,3}\.default,{}\))\]/,
-
replacement: (_, isStaff, StaffHelpButton, HelpButton) =>
-
`,(moonlight.getConfigOption("experiments","staffSettings")??${isStaff})?${StaffHelpButton}:${HelpButton}]`
+
match: /.\.isStaff\(\)/,
+
replacement: "!0"
}
},
{
-
find: 'title:"Developer Flags"',
+
find: '"scientist:triggered"', // Scientist? Triggered.
replace: {
-
match: /\(null==.\?void 0:.\.isStaff\(\)\)/g,
-
replacement: (orig: string) =>
-
`(moonlight.getConfigOption("experiments","staffSettings")?true:${orig})`
+
match: /(?<=personal_connection_id\|\|)!1/,
+
replacement: "!0"
}
}
];