aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/experiments.ts
blob: dfd53c464ee1f54e00c754a9ea52e6d150eb5236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import definePlugin from '../utils/types';

export default definePlugin({
    name: "Experiments",
    author: "Vendicated, Megumin",
    description: "Enable Experiments",
    patches: [{
        find: "Object.defineProperties(this,{isDeveloper",
        replacement: {
            match: /(?<={isDeveloper:\{[^}]+,get:function\(\)\{return )\w/,
            replace: "true"
        }
    }, {
        find: "canUseOverrides",
        replacement: {
            match: /(\w)\|\|"CONNECTION_OPEN".+?;/g,
            replace: "$1=!0;"
        }
    }]
});