aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/clientInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/clientInfo.ts')
-rw-r--r--src/plugins/clientInfo.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/clientInfo.ts b/src/plugins/clientInfo.ts
new file mode 100644
index 0000000..77cc70c
--- /dev/null
+++ b/src/plugins/clientInfo.ts
@@ -0,0 +1,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")," ")`;
+ }
+ }
+ }]
+}); \ No newline at end of file