Vencord/src/plugins/experiments.ts
2022-09-16 22:12:34 +02:00

21 lines
554 B
TypeScript

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;"
}
}]
});