Vencord/src/plugins/experiments.ts

21 lines
554 B
TypeScript
Raw Normal View History

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"
}
}, {
find: "canUseOverrides",
replacement: {
match: /(\w)\|\|"CONNECTION_OPEN".+?;/g,
replace: "$1=!0;"
}
2022-08-29 20:05:22 +00:00
}]
});