2022-08-29 20:05:22 +00:00
|
|
|
import definePlugin from '../utils/types';
|
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "Experiments",
|
2022-09-16 20:12:34 +00:00
|
|
|
author: "Vendicated, Megumin",
|
2022-08-29 20:05:22 +00:00
|
|
|
description: "Enable Experiments",
|
|
|
|
patches: [{
|
|
|
|
find: "Object.defineProperties(this,{isDeveloper",
|
|
|
|
replacement: {
|
|
|
|
match: /(?<={isDeveloper:\{[^}]+,get:function\(\)\{return )\w/,
|
|
|
|
replace: "true"
|
|
|
|
}
|
2022-09-16 20:10:39 +00:00
|
|
|
}, {
|
|
|
|
find: "canUseOverrides",
|
|
|
|
replacement: {
|
|
|
|
match: /(\w)\|\|"CONNECTION_OPEN".+?;/g,
|
|
|
|
replace: "$1=!0;"
|
|
|
|
}
|
2022-08-29 20:05:22 +00:00
|
|
|
}]
|
|
|
|
});
|