aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/clientInfo.ts
blob: 77cc70c7c1b90e5f896879cef6b335a327eece87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import definePlugin from "../utils/types";

export default definePlugin({
    name: "ClientInfo",
    description: "Adds extra info to Client Info in settings",
    author: "Vendicated",
    patches: [{
        find: "default.versionHash",
        replacement: {
            match: /\w\.createElement.+?["']Host ["'].+?\):null/,
            replace: m => {
                const idx = m.indexOf("Host") - 1;
                return `${m},${m.slice(0, idx)}"Vencord ".repeat(50),"1.0.0")," ")`;
            }
        }
    }]
});